[Cook] wildcard question
Ryan Thompson
ryan at flamtap.org
Fri Feb 8 08:26:42 EST 2008
Hi,
I am a new user of cook, trying to get a simple build set up. I have .cpp
sources coming from various directories, but I would like to keep all my .o
files in one place, in ./obj/
At this point in my file I have variables set up like this
manifest = File1.cpp ../module/File2.cpp subdir/File3.cpp
obj = obj/File1.o obj/File2.o obj/File3.o
%0%.o:
{
test1 = [match_mask %.cpp [manifest]];
echo test1;
}
If I do 'cook obj/File1.o' the recipe works as expected. For the other two,
match_mask doesn't match the .cpp file name with a path on the front of the
file name.
I would like to be able to do something with a wildcard inside the recipe,
like:
test1 = [match_mask *%.cpp [manifest]];
Is this possible? Is there another approach I should try?
I know I can just keep the obj files in SRCDIR/obj but I want to know if the
above is possible. Thanks for any help,
-Ryan Thompson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.auug.org.au/pipermail/cook-users/attachments/20080207/1b2081e0/attachment.htm>
More information about the Cook-users
mailing list