[Cook] psedo-recipes
Aryeh M. Friedman
aryeh at m-net.arbornet.org
Sat Jun 21 01:53:20 EST 2003
If I have a source file like foo/includes.h.footer and need to make foo/includes.h out of some
operation on it. Yes this sounds exactly like what cook is designed for but here is one
complication ALL "real" recipes in my cookbook depend on various dependancies that can not
be derived until foo/includes.h exists. Add on top of this that foo/xxxx is a variable location
that can only be calculated once foo/includes.h exists. I do not want to make a special case
recipe to handle this one case. I want something like this:
if foo/includes.h.footer is older then foo/includes.h then
{
do some work
cat foo/includes.h.footer > foo/includes.h
}
the closest I have come up is something like this ([foo] = foo/includes.h):
if [not [exists [resolve [foo]]]] then
{
cat [foo].top > [foo];
}
Any other ideas?
--Aryeh
More information about the Cook-users
mailing list