]> git.llucax.com Git - software/makeit.git/commitdiff
Make subprojects read the Lib.mak from the parent project
authorLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 17 Sep 2009 13:47:45 +0000 (10:47 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Fri, 18 Sep 2009 03:00:36 +0000 (00:00 -0300)
By moving the Config.mak inclusion to Toplevel.mak we can read the
configuration before anything else, letting the user to change the
top-level path ($T) for example, which can be useful to make the subproject
read the Lib.mak of the parent project for example.

Lib.mak
Toplevel.mak

diff --git a/Lib.mak b/Lib.mak
index 2be60c5a7fca54fd0c2271ffb03026fa9fec18a3..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)
index 03e46c593aca163a5cede01a6b48d949de77d61e..299722dd4766a22a1f95e36784d1f2d622289ec8 100644 (file)
@@ -2,6 +2,9 @@
 # Project name
 P := remake
 
+# Load top-level directory local configuration
+sinclude $T/Config.mak
+
 # Include the build system library
 include $T/Lib.mak