makefile.in 780 B

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