[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.VARIABLES not updated after undefine

From: Andreas Schwab
Subject: .VARIABLES not updated after undefine
Date: Tue, 14 Jul 2015 12:03:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

This makefile demonstrates a bug in the expansion of .VARIABLES:

$ cat Makefile.variables
MY_one := 1
MY_two := 2
$(foreach v, $(filter MY_%, $(.VARIABLES)), $(eval undefine $v))
MY_foo := foo
MY_bar := bar
        @echo MY Variables = $(filter MY_%, $(.VARIABLES))
$ make -f Makefile.variables
MY Variables = MY_one MY_two


Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]