]>
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. | |
5 | ||
6 | SRCDIR=@top_srcdir@ | |
7 | SUBDIRS:=./doc ./bin ./obj ./include/apt-pkg ./include/deity | |
8 | BUILD:=$(shell pwd) | |
9 | export BUILD | |
10 | ||
11 | # Chain to the parent make to do the actual building | |
12 | .PHONY: headers library clean veryclean all binary program doc | |
6322370b AL |
13 | all headers library clean veryclean binary program doc: |
14 | $(MAKE) -C $(SRCDIR) -f Makefile $@ | |
066427d0 AL |
15 | |
16 | # This makes any missing directories | |
17 | .PHONY: dirs | |
18 | MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS)) | |
19 | dirs: | |
20 | ifneq ($(words $(MISSING_DIRS)),0) | |
21 | @mkdir $(MISSING_DIRS) | |
22 | else | |
23 | @echo > /dev/null | |
24 | endif |