From: Leandro Lucarella Date: Thu, 17 Sep 2009 13:47:45 +0000 (-0300) Subject: Make subprojects read the Lib.mak from the parent project X-Git-Url: https://git.llucax.com/software/makeit.git/commitdiff_plain/0d727bacc5269dd13f5873cf96d011b81c6bcf68 Make subprojects read the Lib.mak from the parent project 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. --- diff --git a/Lib.mak b/Lib.mak index 2be60c5..7d82101 100644 --- 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) diff --git a/Toplevel.mak b/Toplevel.mak index 03e46c5..299722d 100644 --- a/Toplevel.mak +++ b/Toplevel.mak @@ -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