[Cook] command line targets

Jerry Pendergraft jerry at endocardial.com
Tue Oct 1 14:42:31 EST 2002


On Tue, 1 Oct 2002, Brendan J Simon wrote:

> 
> I'm new to cook and am having a few problems.  When I type a target at 
> the command line it seems to get executed but so does the first 
> target/recipe that is in the cookbook.  I think I have narrowed this 
> down to the "set force" or "set forced" attribute in the recipes.  I am 
> using this attribute as I am under the impression that it is similar to 
> the .PHONY attribute in GNU Make.  Correct ???
> If not, then is there an equivalent of .PHONY for Cook ?
set force is not eqivalent to .phony, it causes the target to be evaluated
without regard to any dependencies.

You can put set default, or set nodefault on recipes to control which gets
evaluated if you specify no target at all.

Hope that helps
> 
> Is there any difference between "set force" and "set foreced" ???
nope
> 
> Thanks,
> Brendan Simon.
> 
> 
> _______________________________________________
> Cook-users mailing list
> Cook-users at auug.org.au
> http://www.auug.org.au/mailman/listinfo/cook-users
> 




More information about the Cook-users mailing list