Author: jgg
Date: 1998-07-14 05:39:36 GMT
Top level make files
--- /dev/null
+# -*- make -*-
+
+# This is the top level make file for APT, it recurses to each lower
+# level make file and runs it with the proper target
+.SILENT:
+
+.PHONY: headers library clean veryclean all binary program doc
+all headers library clean veryclean binary program doc:
+ $(MAKE) -C deity $@
+ $(MAKE) -C apt-pkg $@
endif
BUILD:= $(foreach i,$(BUILD_POSSIBLE),$(wildcard $(i)/environment.mak))
-BUILD:= $(firstword $(dir $(BUILD)))
+BUILD:= $(patsubst %/,%,$(firstword $(dir $(BUILD))))
ifeq ($(words $(BUILD)),0)
error-all:
# Chain to the parent make to do the actual building
.PHONY: headers library clean veryclean all binary program doc
-headers library clean veryclean all binary program doc:
- $(MAKE) -C $(SRCDIR) $@
+all headers library clean veryclean binary program doc:
+ $(MAKE) -C $(SRCDIR) -f Makefile $@
# This makes any missing directories
.PHONY: dirs