makefile.in 835 B

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