Makefile 589 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.6.0_rc2
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		:= 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 39 40 41
test: FORCE
	$(Q)$(MAKE) TEST=y
	$(Q)$(MAKE) -C test

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