apk-tools/Makefile

54 lines
830 B
Makefile
Raw Normal View History

##
# Building apk-tools
-include config.mk
PACKAGE := apk-tools
2019-06-05 12:34:16 +00:00
VERSION := 2.10.4
export VERSION
##
# Default directories
DESTDIR :=
SBINDIR := /sbin
2010-03-05 08:13:25 +00:00
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 INCLUDEDIR PKGCONFIGDIR
##
# Top-level subdirs
subdirs := libfetch/ src/ doc/
##
# Include all rules and stuff
include Make.rules
##
# Top-level targets
install:
$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
$(INSTALL) README.md $(DESTDIR)$(DOCDIR)
check test: FORCE src/
$(Q)$(MAKE) TEST=y
$(Q)$(MAKE) -C test
static:
$(Q)$(MAKE) STATIC=y
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)"
src/: libfetch/