Re: [PATCH] autoconf: Use autoconf to write installation directories to config.mak
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jul 1, 2006, 13:58 UTC
- Message-ID
- <e85v14$85c$1@sea.gmane.org>
- In-Reply-To
- <44A51693.5020501@op5.se>
Andreas Ericsson wrote:
Show 11 quoted lines
> This is bad, since it forces users to do one thing first and then do > what they're used to. Better to have the script add > > -include config.mak.autogen > > LAST in config.mak, unless it's already in the file and generate > config.mak.autogen with configure. > > Since Make does things bottoms-up (much like swedish students and > midsummer celebrators), the previous hand-edited defaults in config.mak > will beat the ones in config.mak.autogen (a good thing).
That's not true, unless we use '?=' assignment in Makefile. And we _want_ to override defaults provided in main git Makefile, so in config.mak.autoconf, and probably in user's own config.mak we use '=' overriding assignment. So it would be better to just add "-include config.mak.autogen" to makefile before "-include config.mak", as in patch below.
diff --git a/Makefile b/Makefile index ccd7c62..a37d400 100644 --- a/Makefile +++ b/Makefile @@ -333,6 +333,7 @@ ifneq (,$(findstring arm,$(uname_M))) ARM_SHA1 = YesPlease endif +-include config.mak.autogen -include config.mak ifdef WITH_OWN_SUBPROCESS_PY
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git