]> git.saurik.com Git - apt.git/blob - buildlib/makefile.in
424ed1e463c502d505dc3386ec14b2e8e7122337
[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 ./bin/methods ./obj ./include/apt-pkg ./include/deity
9 SUBDIRS+=./obj/doc ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
10 ./obj/test ./obj/methods
11 BUILD:=$(shell pwd)
12 export BUILD
13
14 # Chain to the parent make to do the actual building
15 .PHONY: headers library clean veryclean all binary program doc
16 all headers library clean veryclean binary program doc:
17 $(MAKE) -C $(SRCDIR) -f Makefile $@
18
19 # This makes any missing directories
20 .PHONY: dirs
21 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
22 dirs:
23 ifneq ($(words $(MISSING_DIRS)),0)
24 @mkdir $(MISSING_DIRS)
25 else
26 @echo > /dev/null
27 endif