[Cook] Command-line Arguments
    Peter Miller 
    peter.miller.aus at gmail.com
       
    Thu Oct 27 07:34:07 EST 2011
    
    
  
On Wed, 2011-10-26 at 16:09 -0400, Kyle Loveless wrote:
> Is there a way to pass my own command line arguments to cook? Basically I
> want to something like:
> 
> cook <target> -Debug
> cook <target> -Nodebug
> 
> which internally will set the c++ compile flags in the cookbook.
You can set variables from the command line, e.g.
        cook debug=1
then in the cookbook
        if [not [defined debug]] then
        debug = 0;
        
        if [debug] then
        cc_flags += -g;
-- 
Peter Miller <peter.miller.aus at gmail.com>
    
    
More information about the Cook-users
mailing list