From 0d727bacc5269dd13f5873cf96d011b81c6bcf68 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 17 Sep 2009 10:47:45 -0300 Subject: [PATCH] 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. --- Lib.mak | 3 --- Toplevel.mak | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.43.0