Then why did the expansion triggered by line 13 still show up the same as the others when running "make expansion"? After all, the assignment at line 10 should have happened the first time, so its reference at line 13 should have been acceptable and been expanded properly the first time, shouldn't it?
-----Original Message----- From: Paul Smith [mailto:[email protected]] Sent: Wednesday, March 06, 2013 1:18 PM To: Hiebert, Darren (IS) Cc: [email protected] Subject: EXT :Re: Problem with makefile On Wed, 2013-03-06 at 18:30 +0000, Hiebert, Darren (IS) wrote: > $(foreach index,$($(1)_TARGET_NUMBERS),$(call > target_assignments,$(1),BIN$(index))) This line is quoted incorrectly. You need to write: $$($(1)_TARGET_NUMBERS) ^^ Otherwise this variable is expanded the first time, when the call is invoked, before the eval has run, and the value of SAMPLE_TARGET_NUMBERS is not set until the eval is running so it evaluates to the empty string. _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
