help-make
[Top][All Lists]
Advanced

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

RE: EXT :Re: Problem with makefile


From: Hiebert, Darren (IS)
Subject: RE: EXT :Re: Problem with makefile
Date: Wed, 6 Mar 2013 19:52:55 +0000

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:address@hidden 
Sent: Wednesday, March 06, 2013 1:18 PM
To: Hiebert, Darren (IS)
Cc: address@hidden
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.


reply via email to

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