2009-04-16 10:49:16 +00:00
|
|
|
##
|
|
|
|
# Building apk-tools
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2011-01-04 09:48:13 +00:00
|
|
|
-include config.mk
|
|
|
|
|
2009-01-15 13:48:11 +00:00
|
|
|
PACKAGE := apk-tools
|
2019-06-05 12:34:16 +00:00
|
|
|
VERSION := 2.10.4
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2020-03-16 13:25:02 +00:00
|
|
|
export VERSION
|
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
##
|
|
|
|
# Default directories
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
DESTDIR :=
|
|
|
|
SBINDIR := /sbin
|
2010-03-05 08:13:25 +00:00
|
|
|
LIBDIR := /lib
|
2009-04-16 10:49:16 +00:00
|
|
|
CONFDIR := /etc/apk
|
|
|
|
MANDIR := /usr/share/man
|
|
|
|
DOCDIR := /usr/share/doc/apk
|
2020-03-16 13:25:02 +00:00
|
|
|
INCLUDEDIR := /usr/include/apk
|
|
|
|
PKGCONFIGDIR := /usr/lib/pkgconfig
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2020-03-16 13:25:02 +00:00
|
|
|
export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR INCLUDEDIR PKGCONFIGDIR
|
2008-12-01 07:03:11 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
##
|
2020-01-26 09:51:56 +00:00
|
|
|
# Top-level subdirs
|
2008-04-21 16:30:10 +00:00
|
|
|
|
2020-01-26 09:51:56 +00:00
|
|
|
subdirs := libfetch/ src/ doc/
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
##
|
|
|
|
# Include all rules and stuff
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
include Make.rules
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
##
|
|
|
|
# Top-level targets
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2009-07-29 16:07:14 +00:00
|
|
|
install:
|
2008-04-17 14:09:13 +00:00
|
|
|
$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
|
2020-03-16 13:25:02 +00:00
|
|
|
$(INSTALL) README.md $(DESTDIR)$(DOCDIR)
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2020-03-16 13:25:02 +00:00
|
|
|
check test: FORCE src/
|
2011-07-26 13:56:55 +00:00
|
|
|
$(Q)$(MAKE) TEST=y
|
|
|
|
$(Q)$(MAKE) -C test
|
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
static:
|
|
|
|
$(Q)$(MAKE) STATIC=y
|
2017-10-05 07:57:45 +00:00
|
|
|
|
2017-10-27 13:09:49 +00:00
|
|
|
tag: check
|
|
|
|
git commit . -m "apk-tools-$(VERSION)"
|
|
|
|
git tag -s v$(VERSION) -m "apk-tools-$(VERSION)"
|
|
|
|
|
2017-10-05 07:57:45 +00:00
|
|
|
src/: libfetch/
|