Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:
  29. mkdir $(BUILD)
  30. $(BUILD)/config.status: configure
  31. (HERE=`pwd`; cd $(BUILD) && $$HERE/configure)
  32. $(BUILD)/include/config.h: buildlib/config.h.in
  33. $(BUILD)/environment.mak: buildlib/environment.mak.in
  34. $(CONVERTED):
  35. (cd $(BUILD) && ./config.status)