[Cook] wildcard question
Aryeh M. Friedman
aryeh.friedman at gmail.com
Fri Feb 8 08:45:53 EST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Oops forgot to mention if you have not done so yet you should look at
the tutorial (especially the "super soft coding" section)
Ryan Thompson wrote:
| 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
|
| -------------------------
|
| _______________________________________________
| Cook-users mailing list
| Cook-users at auug.org.au
| http://www.auug.org.au/mailman/listinfo/cook-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHq3wRHYM+mNo6WpsRAtJ+AJ94VRPUPQXQFMiCXP87ec3H2ZjxBACgzBjJ
kT5bNjt2DKVB4JRVqz9wl2E=
=DUxy
-----END PGP SIGNATURE-----
More information about the Cook-users
mailing list