[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: simply expanded variable getting overwritten
From: |
Dave Korn |
Subject: |
RE: simply expanded variable getting overwritten |
Date: |
Tue, 21 Aug 2007 10:27:34 +0100 |
On 21 August 2007 06:31, Paul Smith wrote:
> On Mon, 2007-08-20 at 22:12 -0700, micron_make wrote:
>> I couldn't get eval method working
>>> To get it expanded earlier, you need an eval:
>>>
>>> define clean_rule
>>> $(loc_mod)_clean:
>>> @echo $$($(loc_mod)_CLCMD)
>>> endef
>>>
>>> $(eval $(call clean_rule))
>
> It's useless to use $(call ...) here, because you're not passing any
> arguments. There's no difference between $(call clean_rule) and just
> using $(clean_rule) directly.
>
> Call is only useful for parametrized functions.
Yeh, that was a historical remnant, I was gonna pass in $(loc_mod) as an
argument but changed my mind.
cheers,
DaveK
--
Can't think of a witty .sigline today....