[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: for loop question
From: |
Noel Yap |
Subject: |
Re: for loop question |
Date: |
Thu, 26 Feb 2004 13:30:21 -0500 |
There's a $(foreach) function you can use. I'm not sure exactly what you're
trying to do, but you might also need $(eval) which is available in GNU make
3.80 and up.
Noel
"Rousselle, Christine" wrote:
>
> 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
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-make
--
NOTICE: If received in error, please destroy and notify sender. Sender does
not waive confidentiality or privilege, and use is prohibited.