makefile.in 729 B

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