[Cook] Foreach in a currentdirectory
xancorreu
xancorreu at gmail.com
Thu Apr 26 22:13:51 EST 2012
Hi,
I have this cookfile:
all: algorisme.out hola.out;
algorisme.out: algorisme.cpp
{
clang++ -o algorisme.out algorisme.cpp;
}
hola.out: hola.cpp
{
clang++ -o hola.out hola.cpp;
}
I want to substitute this for the rule:
process every file with .cpp extension and write as this file.out
I try this:
%0.out: %.cpp
{
clang...
}
but how to say that I want to process all the files in the current
directory?
What should I add to all:?
Thanks in advance,
Xan.
More information about the Cook-users
mailing list