]>
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@ | |
f00ce0ae AL |
10 | DIRS:=./docs ./bin ./obj ./include ./scripts |
11 | SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \ | |
c3c459fc | 12 | ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \ |
f00ce0ae | 13 | ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect |
066427d0 AL |
14 | BUILD:=$(shell pwd) |
15 | export BUILD | |
16 | ||
17 | # Chain to the parent make to do the actual building | |
f00ce0ae AL |
18 | .PHONY: headers library clean veryclean all binary program doc \ |
19 | veryclean/local | |
6322370b AL |
20 | all headers library clean veryclean binary program doc: |
21 | $(MAKE) -C $(SRCDIR) -f Makefile $@ | |
f00ce0ae AL |
22 | |
23 | # Purge everything. | |
24 | .PHONY: maintainer-clean dist-clean pristine sanity distclean | |
25 | maintainer-clean dist-clean pristine sanity distclean: | |
26 | -rm -rf $(DIRS) | |
27 | -rm -f config.cache config.log config.status environment.mak makefile | |
066427d0 AL |
28 | |
29 | # This makes any missing directories | |
30 | .PHONY: dirs | |
31 | MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS)) | |
32 | dirs: | |
33 | ifneq ($(words $(MISSING_DIRS)),0) | |
34 | @mkdir $(MISSING_DIRS) | |
35 | else | |
36 | @echo > /dev/null | |
37 | endif |