From 4966bc5edec37adcf4a9da692e57f38e02bac9fe Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Mon, 16 Mar 2020 15:25:02 +0200 Subject: build: enable building of development package - always create .so and .a with the apk libary code - create .pc file - install headers and above mentioned files Maintainers edit: merged commits, cleaned up sed script logic, and few other minor fixes. --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e7cc0aa..6ea5bc8 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ PACKAGE := apk-tools VERSION := 2.10.4 +export VERSION + ## # Default directories @@ -15,8 +17,10 @@ LIBDIR := /lib CONFDIR := /etc/apk MANDIR := /usr/share/man DOCDIR := /usr/share/doc/apk +INCLUDEDIR := /usr/include/apk +PKGCONFIGDIR := /usr/lib/pkgconfig -export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR +export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR INCLUDEDIR PKGCONFIGDIR ## # Top-level subdirs @@ -33,9 +37,9 @@ include Make.rules install: $(INSTALLDIR) $(DESTDIR)$(DOCDIR) - $(INSTALL) README $(DESTDIR)$(DOCDIR) + $(INSTALL) README.md $(DESTDIR)$(DOCDIR) -check test: FORCE +check test: FORCE src/ $(Q)$(MAKE) TEST=y $(Q)$(MAKE) -C test -- cgit v1.2.3-70-g09d2