Makefile 720 Bytes
Newer Older
1 2
##
# Building apk-tools
3

4 5
-include config.mk

6
PACKAGE := apk-tools
Timo Teräs's avatar
Timo Teräs committed
7
VERSION := 2.8.1
8

9 10
##
# Default directories
11

12 13
DESTDIR		:=
SBINDIR		:= /sbin
Natanael Copa's avatar
Natanael Copa committed
14
LIBDIR		:= /lib
15 16 17
CONFDIR		:= /etc/apk
MANDIR		:= /usr/share/man
DOCDIR		:= /usr/share/doc/apk
18

19
export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR
20

21 22
##
# Top-level rules and targets
23

24
targets		:= libfetch/ src/
25

26 27
##
# Include all rules and stuff
28

29
include Make.rules
30

31 32
##
# Top-level targets
33

34
install:
35 36 37
	$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
	$(INSTALL) README $(DESTDIR)$(DOCDIR)

38
check test: FORCE
39 40 41
	$(Q)$(MAKE) TEST=y
	$(Q)$(MAKE) -C test

42 43
static:
	$(Q)$(MAKE) STATIC=y
44

Timo Teräs's avatar
Timo Teräs committed
45 46 47 48
tag: check
	git commit . -m "apk-tools-$(VERSION)"
	git tag -s v$(VERSION) -m "apk-tools-$(VERSION)"

49
src/: libfetch/