diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2020-03-16 15:25:02 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-03-16 15:36:46 +0200 |
commit | 4966bc5edec37adcf4a9da692e57f38e02bac9fe (patch) | |
tree | 4e7ea811fbe4db259e7df8fca4120d2f3b374cc9 /Makefile | |
parent | 8b2efdd272862ae41d3e3aa2828f4d2c49e60abd (diff) | |
download | apk-tools-4966bc5edec37adcf4a9da692e57f38e02bac9fe.tar.gz apk-tools-4966bc5edec37adcf4a9da692e57f38e02bac9fe.tar.bz2 apk-tools-4966bc5edec37adcf4a9da692e57f38e02bac9fe.tar.xz apk-tools-4966bc5edec37adcf4a9da692e57f38e02bac9fe.zip |
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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |