]>
Commit | Line | Data |
---|---|---|
066427d0 AL |
1 | # -*- make -*- |
2 | ||
3 | # This is the build directory make file, it sets the build directory | |
4 | # and runs the src makefile. | |
53da8d70 | 5 | ifndef NOISY |
faf4e30c | 6 | .SILENT: |
53da8d70 | 7 | endif |
066427d0 AL |
8 | |
9 | SRCDIR=@top_srcdir@ | |
ee43a304 AL |
10 | SUBDIRS:=./docs ./bin ./bin/methods ./obj ./include/apt-pkg ./include/deity |
11 | SUBDIRS+=./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \ | |
f0a53b63 | 12 | ./obj/test ./obj/methods ./obj/methods/ftp |
066427d0 AL |
13 | BUILD:=$(shell pwd) |
14 | export BUILD | |
15 | ||
16 | # Chain to the parent make to do the actual building | |
17 | .PHONY: headers library clean veryclean all binary program doc | |
6322370b AL |
18 | all headers library clean veryclean binary program doc: |
19 | $(MAKE) -C $(SRCDIR) -f Makefile $@ | |
066427d0 AL |
20 | |
21 | # This makes any missing directories | |
22 | .PHONY: dirs | |
23 | MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS)) | |
24 | dirs: | |
25 | ifneq ($(words $(MISSING_DIRS)),0) | |
26 | @mkdir $(MISSING_DIRS) | |
27 | else | |
28 | @echo > /dev/null | |
29 | endif |