3 # This is the build directory make file, it sets the build directory
4 # and runs the src makefile.
8 include environment.mak
11 DIRS:=./docs ./bin ./obj ./include ./scripts
12 SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
13 ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
14 ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
18 # Chain to the parent make to do the actual building
19 .PHONY: headers library clean veryclean all binary program doc \
21 all headers library clean veryclean binary program doc:
22 $(MAKE) -C $(SRCDIR) -f Makefile $@
25 .PHONY: maintainer-clean dist-clean pristine sanity distclean
26 maintainer-clean dist-clean pristine sanity distclean:
28 -rm -f config.cache config.log config.status environment.mak makefile
30 # This makes any missing directories
32 MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
34 ifneq ($(words $(MISSING_DIRS)),0)
35 @mkdir $(MISSING_DIRS)
39 ifeq ($(HAVE_C9X),yes)
40 -@rm include/inttypes.h > /dev/null 2>&1
42 @cp $(SRCDIR)/buildlib/inttypes.h.in include/inttypes.h