summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-16 15:25:02 +0200
committerTimo Teräs <timo.teras@iki.fi>2020-03-16 15:36:46 +0200
commit4966bc5edec37adcf4a9da692e57f38e02bac9fe (patch)
tree4e7ea811fbe4db259e7df8fca4120d2f3b374cc9 /Makefile
parent8b2efdd272862ae41d3e3aa2828f4d2c49e60abd (diff)
downloadapk-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--Makefile10
1 files changed, 7 insertions, 3 deletions
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