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....



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to