A shorter version
Works
$(foreach var,$(list)

Fails
$(foreach var\
        ,$(list)

Fails
$(foreach var,\
        $(list)

Appears that var,list must have no white space between.
What is the reason for this?

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of PATTON, BILLY (SBCSI)
> Sent: Monday, March 27, 2006 4:02 PM
> To: [email protected]
> Subject: Why does one work ant the other doesn't $(foreach
> 
> 
> Why do the 2 following loops, that are identical, except for the break
> in the lines, does the first work and the second fail
> 
> $(foreach proj,$(filter-out ldb,$(PROJECTS))\
>         ,$(foreach bb,$(BB$(sep)$(proj))\
>                 ,$(foreach topic,$(TOPIC$(sep)$(proj)$(sep)$(bb)) \
>                         ,$(warning $(call clean_proj_bb_topic_target\
>                                         ,$(call merge,$(sep),clean
> ${proj} $(bb) $(topic))\
>                                         ,$(proj),$(bb),$(topic))))))
> 
> $(foreach proj\
>       ,$(filter-out ldb,$(PROJECTS))\
>       ,$(foreach bb\
>               ,$(BB$(sep)$(proj))\
>             ,$(foreach topic\
>                       ,$(TOPIC$(sep)$(proj)$(sep)$(bb)) \
>                   ,$(warning $(call clean_proj_bb_topic_target\
>                                       ,$(call merge,$(sep),clean
> ${proj} $(bb) $(topic))\
>                                       ,$(proj),$(bb),$(topic))))))
> 
> 
> _______________________________________________
> Help-make mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-make
> 


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

Reply via email to