Hi,<br><br>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/ <br><br>At this point in my file I have variables set up like this<br>
<br><br>manifest = File1.cpp ../module/File2.cpp subdir/File3.cpp<br><br>obj = obj/File1.o obj/File2.o obj/File3.o<br><br>%0%.o: <br>{<br> test1 = [match_mask %.cpp [manifest]];<br> echo test1;<br>}<br><br><br>
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. <br><br>I would like to be able to do something with a wildcard inside the recipe, like: <br>
test1 = [match_mask *%.cpp [manifest]];<br><br>Is this possible? Is there another approach I should try? <br><br>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,<br>
<br>-Ryan Thompson<br>