Ver código fonte

Top level make files
Author: jgg
Date: 1998-07-14 05:39:36 GMT
Top level make files

Arch Librarian 22 anos atrás
pai
commit
6322370b73
3 arquivos alterados com 13 adições e 3 exclusões
  1. 10 0
      Makefile
  2. 1 1
      buildlib/defaults.mak
  3. 2 2
      buildlib/makefile.in

+ 10 - 0
Makefile

@@ -0,0 +1,10 @@
+# -*- 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 $@

+ 1 - 1
buildlib/defaults.mak

@@ -36,7 +36,7 @@ BUILD_POSSIBLE = $(BASE) $(BASE)/build
 endif
 endif
 
 
 BUILD:= $(foreach i,$(BUILD_POSSIBLE),$(wildcard $(i)/environment.mak))
 BUILD:= $(foreach i,$(BUILD_POSSIBLE),$(wildcard $(i)/environment.mak))
-BUILD:= $(firstword $(dir $(BUILD)))
+BUILD:= $(patsubst %/,%,$(firstword $(dir $(BUILD))))
 
 
 ifeq ($(words $(BUILD)),0)
 ifeq ($(words $(BUILD)),0)
 error-all:
 error-all:

+ 2 - 2
buildlib/makefile.in

@@ -10,8 +10,8 @@ export BUILD
 
 
 # Chain to the parent make to do the actual building
 # Chain to the parent make to do the actual building
 .PHONY: headers library clean veryclean all binary program doc
 .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
 # This makes any missing directories
 .PHONY: dirs
 .PHONY: dirs