help-make
[Top][All Lists]
Advanced

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

loop on the command side help please


From: PATTON, BILLY \(SBCSI\)
Subject: loop on the command side help please
Date: Thu, 23 Mar 2006 10:30:17 -0600

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 :)




reply via email to

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