Makefile 573 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.1.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
Natanael Copa's avatar
Natanael Copa committed
18
LUA_LIBDIR	:= /usr/lib/lua/5.1
19

Natanael Copa's avatar
Natanael Copa committed
20
export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR LUA_LIBDIR
21

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

25
targets		:= src/
26

27 28
##
# Include all rules and stuff
29

30
include Make.rules
31

32 33
##
# Top-level targets
34

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

39 40
static:
	$(Q)$(MAKE) STATIC=y