3 # This is the build directory make file, it sets the build directory
4 # and runs the src makefile.
10 DIRS:=./docs ./bin ./obj ./include ./scripts
11 SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
12 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
13 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
17 # Chain to the parent make to do the actual building
18 .PHONY: headers library clean veryclean all binary program doc \
20 all headers library clean veryclean binary program doc:
21 $(MAKE) -C $(SRCDIR) -f Makefile $@
24 .PHONY: maintainer-clean dist-clean pristine sanity distclean
25 maintainer-clean dist-clean pristine sanity distclean:
27 -rm -f config.cache config.log config.status environment.mak makefile
29 # This makes any missing directories
31 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
33 ifneq ($(words $(MISSING_DIRS)),0)
34 @mkdir $(MISSING_DIRS)