makefile.in 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. DIRS:=./docs ./bin ./obj ./include ./scripts
  9. SUBDIRS:= $(DIRS) ./docs/examples ./bin/methods ./include/apt-pkg \
  10. ./include/deity ./obj/apt-pkg ./obj/deity ./obj/gui ./obj/cmdline \
  11. ./obj/test ./obj/methods ./obj/methods/ftp ./scripts/dselect
  12. BUILD:=$(shell pwd)
  13. export BUILD
  14. # Chain to the parent make to do the actual building
  15. .PHONY: headers library clean veryclean all binary program doc \
  16. veryclean/local
  17. all headers library clean veryclean binary program doc:
  18. $(MAKE) -C $(SRCDIR) -f Makefile $@
  19. # Purge everything.
  20. .PHONY: maintainer-clean dist-clean pristine sanity distclean
  21. maintainer-clean dist-clean pristine sanity distclean:
  22. -rm -rf $(DIRS)
  23. -rm -f config.cache config.log config.status environment.mak makefile
  24. # This makes any missing directories
  25. .PHONY: dirs
  26. MISSING_DIRS:= $(filter-out $(wildcard $(SUBDIRS)),$(SUBDIRS))
  27. dirs:
  28. ifneq ($(words $(MISSING_DIRS)),0)
  29. @mkdir $(MISSING_DIRS)
  30. else
  31. @echo > /dev/null
  32. endif