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
|
|
|
|
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
|
2008-04-17 14:09:13 +00:00
|
|
|
|
2013-06-26 14:42:10 +00:00
|
|
|
export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR
|
2008-12-01 07:03:11 +00:00
|
|
|
|
2009-04-16 10:49:16 +00:00
|
|
|
##
|
|
|
|
# Top-level rules and targets
|
2008-04-21 16:30:10 +00:00
|
|
|
|
2017-10-05 07:57:45 +00:00
|
|
|
targets := libfetch/ src/
|
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)
|
|
|
|
$(INSTALL) README $(DESTDIR)$(DOCDIR)
|
|
|
|
|
2017-02-27 06:47:52 +00:00
|
|
|
check test: FORCE
|
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/
|