aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 98b565d..3102cac 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@
-include config.mk
PACKAGE := apk-tools
-VERSION := 2.10.4
+VERSION := $(shell ./get-version.sh "$(FULL_VERSION)" "$(VERSION)")
+
+export PACKAGE VERSION
##
# Default directories
@@ -15,13 +17,15 @@ LIBDIR := /lib
CONFDIR := /etc/apk
MANDIR := /usr/share/man
DOCDIR := /usr/share/doc/apk
+INCLUDEDIR := /usr/include
+PKGCONFIGDIR := /usr/lib/pkgconfig
-export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR
+export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR INCLUDEDIR PKGCONFIGDIR
##
-# Top-level rules and targets
+# Top-level subdirs
-targets := libfetch/ src/
+subdirs := libfetch/ src/ doc/
##
# Include all rules and stuff
@@ -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
@@ -43,7 +47,8 @@ static:
$(Q)$(MAKE) STATIC=y
tag: check
- git commit . -m "apk-tools-$(VERSION)"
- git tag -s v$(VERSION) -m "apk-tools-$(VERSION)"
+ TAG_VERSION=$$(cat VERSION); \
+ git commit . -m "apk-tools-$${TAG_VERSION}"; \
+ git tag -s v$${TAG_VERSION} -m "apk-tools-$${TAG_VERSION}"
src/: libfetch/