[Top][All Lists]

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

Re: Using named variables in canned recipes

From: Tony Theodore
Subject: Re: Using named variables in canned recipes
Date: Mon, 13 Mar 2017 20:00:56 +1100

> On 13 Mar 2017, at 02:02, LeJacq, Jean Pierre <address@hidden> wrote:
> Tony Theodore wrote:
>> It seems the variable `prog` is in scope from the calling loop and
>> can be referenced in the template:
>>    define PROGRAM_template =
>>     $(prog): $$($(prog)_OBJS) $$($(prog)_LIBS:%=-l%)
>>     ALL_OBJS   += $$($(prog)_OBJS)
>>    endef
>> I was wondering if this is defined behaviour and can be relied upon
>> to work in future versions of make?
> This is similar to a following bug:
> Can you see what the flavor reports?

Flavour reports `simple` for the loop case, which seems to make sense.



reply via email to

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