From 47053ede6b3ab5356054f8e14bac7eb3c03e09d1 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Wed, 1 Apr 2020 16:37:46 +0200 Subject: build: fix includedir in pkgconfig file We want to include via and not via <$headerfile>, so we want to add an include statement for the dir the apk folder which contains the headers is contained in. --- src/Makefile | 4 ++-- src/apk.pc.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 6bf2ed0..37c29a2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -114,8 +114,8 @@ install: $(obj)/apk $(libapk_so) $(libapk_a) $(apklua_so) $(install-libapk_so) $(install-libapk_a) $(install-apklua_so) - $(INSTALLDIR) $(DESTDIR)$(INCLUDEDIR) - $(INSTALL) -m644 src/*.h $(DESTDIR)$(INCLUDEDIR) + $(INSTALLDIR) $(DESTDIR)$(INCLUDEDIR)/apk + $(INSTALL) -m644 src/*.h $(DESTDIR)$(INCLUDEDIR)/apk $(INSTALLDIR) $(DESTDIR)$(PKGCONFIGDIR) $(INSTALL) -m644 $(obj)/apk.pc $(DESTDIR)$(PKGCONFIGDIR) diff --git a/src/apk.pc.in b/src/apk.pc.in index c7020b3..d9b05cb 100644 --- a/src/apk.pc.in +++ b/src/apk.pc.in @@ -7,4 +7,4 @@ Description: Alpine Package Manager Version: @VERSION@ Requires: zlib openssl Libs: -L${libdir} -lapk -Cflags: -I${includedir}/apk +Cflags: -I${includedir} -- cgit v1.2.3-70-g09d2