[Cook] Case insensitive dependencies ??

Jerry Pendergraft jerry at endocardial.com
Tue Nov 16 01:11:44 EST 2004


I would probably do a change and use a little perl to just fix the files
so the includes matched the real file name case. The use c_incl to
generate cascade dependencies. Lacking that you should be able to use 
set match-mode regex
to allow case insensitive matching something like:

foo.tgt: [match-mask /bar\.src/i [project_files]] set match-mode regex;

-- 
Jerry Pendergraft                        jerry.pendergraft at endocardial.com
Endocardial Solutions                    voice: 651-523-6935
1350 Energy Lane, Suite 110                fax: 651-644-7897
St Paul, MN 55108-5254                  mobile: 651-491-0163

On Mon, 15 Nov 2004, John Darrington wrote:

> Is it possible to configure cook such that one can give it dependency
> rules such as
> 
> foo.tgt: bar.src ;
> 
> and for cook to look for Bar.src, BAR.SRC, bAr.sRc or any other
> combination.  This will help for projects using inane compilers which
> allow statements such as 
> 
> include bar.src
> 
> when the file is actually called "Bar.src"
> 
> J'
> 
> 




More information about the Cook-users mailing list