> On 13 Mar 2017, at 02:02, LeJacq, Jean Pierre 
> <jeanpierre.lej...@quoininc.com> 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:
> 
>  http://savannah.gnu.org/bugs/?49841
> 
> Can you see what the flavor reports?

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

Cheers,

Tony


_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to