fix: make install fail when libtoml.pc does not exist
This commit is contained in:
parent
894902820a
commit
d4c94500c4
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -37,8 +37,11 @@ install: all
|
||||||
install $(LIB) ${prefix}/lib
|
install $(LIB) ${prefix}/lib
|
||||||
install $(LIB_SHARED) ${prefix}/lib
|
install $(LIB_SHARED) ${prefix}/lib
|
||||||
ifeq "$(prefix)" "/usr/local"
|
ifeq "$(prefix)" "/usr/local"
|
||||||
|
ifneq ("$(wildcard $(PCFILE))","")
|
||||||
install $(PCFILE) /usr/local/lib/pkgconfig
|
install $(PCFILE) /usr/local/lib/pkgconfig
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o $(EXEC) $(LIB) $(LIB_SHARED)
|
rm -f *.o $(EXEC) $(LIB) $(LIB_SHARED)
|
||||||
|
|
Loading…
Reference in a new issue