]> git.llucax.com Git - software/makeit.git/blobdiff - Lib.mak
Make subprojects read the Lib.mak from the parent project
[software/makeit.git] / Lib.mak
diff --git a/Lib.mak b/Lib.mak
index 259a65906889addfd4fa636c5fb403046a1c7b64..7d82101df2dd08b14402ed4b034c7bc92f7c9e80 100644 (file)
--- a/Lib.mak
+++ b/Lib.mak
@@ -7,9 +7,6 @@ Lib.mak.included := 1
 # T should be the path to the top-level directory.
 # C should be the path to the current directory.
 
-# Load top-level directory local configuration
-sinclude $T/Config.mak
-
 # Verbosity flag (empty show nice messages, 1 be verbose)
 # honour make -s flag
 override V := $(if $(findstring s,$(MAKEFLAGS)),1,$V)
@@ -240,4 +237,12 @@ $(if $V,,$(if $(setup_build_dir__), \
        $(info !! Something changed: $(setup_build_dir__) \
                        re-building affected files...)))
 
+# Include the Build.mak for this directory
+include $T/Build.mak
+
+# Phony rule to make all the targets (sub-makefiles can append targets to build
+# to the $(all) variable).
+.PHONY: all
+all: $(all)
+
 endif