]> git.saurik.com Git - apt.git/blob - buildlib/makefile.in
f53b8cca9a53f46ae7a9ae01417733c66bcacb16
[apt.git] / buildlib / makefile.in
1 # -*- make -*-
2
3 # This is the build directory make file, it sets the build directory
4 # and runs the src makefile.
5 .SILENT:
6
7 SRCDIR=@top_srcdir@
8 SUBDIRS:=./doc ./bin ./obj ./include/apt-pkg ./include/deity
9 SUBDIRS+=./obj/doc ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline
10 BUILD:=$(shell pwd)
11 export BUILD
12
13 # Chain to the parent make to do the actual building
14 .PHONY: headers library clean veryclean all binary program doc
15 all headers library clean veryclean binary program doc:
16 $(MAKE) -C $(SRCDIR) -f Makefile $@
17
18 # This makes any missing directories
19 .PHONY: dirs
20 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
21 dirs:
22 ifneq ($(words $(MISSING_DIRS)),0)
23 @mkdir $(MISSING_DIRS)
24 else
25 @echo > /dev/null
26 endif