[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I generate multiple recipe commands dynamically in makefile
From: |
Klaus Rudolph |
Subject: |
Re: Can I generate multiple recipe commands dynamically in makefile |
Date: |
Sun, 15 May 2011 17:19:22 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Hi Chen,
is it important that make expands your vars? If the shell can do it,
simply write:
----
filelist= f1.c f2.c f3.c
all:
@for x in $(filelist); do echo $$x; done
----
>
> I'd like to dynamically generate N shell commands under "all" targets when
> filelist has N words. How can I do it? Without the ultimate solution,
> everytime I add a word to filelist, I have to manually add one command line
> under "all". Quite boring, right?
>