fix: make install fail when libtoml.pc does not exist

This commit is contained in:
CK Tan 2023-05-29 12:31:52 -07:00
parent 894902820a
commit d4c94500c4

View file

@ -37,8 +37,11 @@ install: all
install $(LIB) ${prefix}/lib
install $(LIB_SHARED) ${prefix}/lib
ifeq "$(prefix)" "/usr/local"
ifneq ("$(wildcard $(PCFILE))","")
install $(PCFILE) /usr/local/lib/pkgconfig
endif
endif
clean:
rm -f *.o $(EXEC) $(LIB) $(LIB_SHARED)