Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # -*- make -*-
  2. # This is the top level make file for APT, it recurses to each lower
  3. # level make file and runs it with the proper target
  4. ifndef NOISY
  5. .SILENT:
  6. endif
  7. .PHONY: headers library clean veryclean all binary program doc
  8. all headers library clean veryclean binary program doc:
  9. $(MAKE) -C apt-pkg $@
  10. $(MAKE) -C methods $@
  11. # $(MAKE) -C methods/ftp $@
  12. $(MAKE) -C cmdline $@
  13. $(MAKE) -C deity $@
  14. $(MAKE) -C gui $@
  15. $(MAKE) -C doc $@
  16. .PHONY: maintainer-clean dist-clean distclean pristine sanity
  17. maintainer-clean dist-clean distclean pristine sanity: veryclean
  18. # The startup target builds the necessary configure scripts. It should
  19. # be used after a CVS checkout.
  20. .PHONY: startup
  21. BUILD=build
  22. CONVERTED=$(BUILD)/environment.mak $(BUILD)/include/config.h $(BUILD)/makefile
  23. startup: configure $(CONVERTED)
  24. configure: aclocal.m4 configure.in
  25. autoconf
  26. aclocal.m4:
  27. aclocal -I buildlib
  28. $(BUILD)/config.status: configure
  29. test -e $(BUILD) || mkdir $(BUILD)
  30. (HERE=`pwd`; cd $(BUILD) && $$HERE/configure)
  31. $(BUILD)/include/config.h: buildlib/config.h.in
  32. $(BUILD)/environment.mak: buildlib/environment.mak.in
  33. $(CONVERTED): $(BUILD)/config.status
  34. (cd $(BUILD) && ./config.status)