help-make
[Top][All Lists]
Advanced

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

for loop question


From: Rousselle, Christine
Subject: for loop question
Date: Thu, 26 Feb 2004 10:22:15 -0800

Hi, 

Is there a way to write a for or foreach loop with a rule in the makefile?
I want to be able to do something like: 

foreach cam, $(CAMLIST) prerequisites; 
  EXEC.sythesize 
  EXEC.compile 
  EXEC.parse_results 
end 

I don't really see anything like that in the GNU Makefile docs.  Do I need
to generate my makefile with a perl or autoconfig script first that
basically expands the for loop?  

Thanks, 
Christine 




reply via email to

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