I have a rule I need to write:

LIST := a b c d ...

define some_template
echo "some_template"
endef
rule : 
<tab> foreach f ( $(LIST) ) $(call some_template,$f)

It's the foreach that I need help with.
On the command side of a rule I need to loop through each of the
elements of a list
and pass it, with call to the define statement.  I know the terminology
is not correct
for pass, but I think you understand.

I've seen examples where the f is $f and in the call it would be $$f
I'm so confused :)


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

Reply via email to