pkgconfig: set include path for header file

This commit is contained in:
Thomas Weißschuh 2021-05-25 10:32:01 +02:00 committed by Jari Vetoniemi
parent 9898036891
commit 44958c3a9b
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,7 @@ $(libs): %: VERSION .git/index
ln -fs $(full) $@ ln -fs $(full) $@
$(pkgconfigs): %: VERSION %.in $(pkgconfigs): %: VERSION %.in
sed "s/@VERSION@/$(VERSION)/;s,@PREFIX@,$(PREFIX),;s,@LIBDIR@,$(libdir)," $(addsuffix .in, $@) > $@ sed "s/@VERSION@/$(VERSION)/;s,@PREFIX@,$(PREFIX),;s,@LIBDIR@,$(libdir),;s,@INCLUDEDIR@,$(includedir)," $(addsuffix .in, $@) > $@
bemenu.1: man/bemenu.1.in bemenu.1: man/bemenu.1.in
sed 's,@LIBDIR@,$(PREFIX)$(libdir),' $< > $@ sed 's,@LIBDIR@,$(PREFIX)$(libdir),' $< > $@

View File

@ -1,7 +1,9 @@
prefix=@PREFIX@ prefix=@PREFIX@
libdir=${prefix}@LIBDIR@ libdir=${prefix}@LIBDIR@
includedir=${prefix}@INCLUDEDIR@
Name: bemenu Name: bemenu
Description: Dynamic menu library Description: Dynamic menu library
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} -lbemenu Libs: -L${libdir} -lbemenu
Cflags: -I${includedir}