From: Thierry Parmentelat Date: Tue, 25 Oct 2011 11:20:35 +0000 (+0200) Subject: fix for command-line vars that need to have 'override' to superseed X-Git-Tag: lxcbuild~31 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=742e3879db1aa4a59ab13f25e24321fd8b7dee39 fix for command-line vars that need to have 'override' to superseed definitions that occur later in the Makefile --- diff --git a/Makefile b/Makefile index 8245f8f2..78533ca6 100644 --- a/Makefile +++ b/Makefile @@ -443,7 +443,7 @@ ASSIGNS=$(foreach chunk,$(MAKEFLAGS),$(if $(findstring =,$(chunk)),$(if $(findst envfrompreviousrun.mk: @echo "# do not edit" > $@ @$(foreach var,$(SAVED_VARS),echo "$(var):=$($(var))" >> $@ ;) - @$(foreach chunk,$(ASSIGNS),echo "$(chunk)" | sed -e s,=,:=, >> $@;) + @$(foreach chunk,$(ASSIGNS),echo "override $(chunk)" | sed -e s,=,:=, >> $@;) @echo "# do not edit" > aliases @echo -n "alias m=\"make " >> aliases @$(foreach var,$(SAVED_VARS),echo -n " $(var)=$($(var))" >> aliases ;)