[Cook] Multiple cook files in a project
Pendergraft, Jerry
JPendergraft at sjm.com
Sat Sep 17 00:37:52 EST 2011
I also use cook include files with great success. For example my top level project cook file contains:
/* Now include all Sub system COOK FILES */
SubCooks = [ match_mask %0%/%1.cook [project_files] ];
SubSystems = [ fromto %0%/%1.cook %1 [SubCooks] ];
#include-cooked [SubCooks]
I use the SubSystems variable to "register" whatever that subsystem wants to build (libs etc).
The benefit is that adding a new subsystem simply requires adding its cook file which defines what it can do.
Note also that, as Peter says, you always type cook at the top level.
But if your targets are defined correctly you can always specify just one from the top level.
That is you could type:
$ cook libz
at the top, and cook would build only the libz product.
On 16 Sep, 2011, at 01:32 , Peter Miller wrote:
> On Fri, 2011-09-16 at 00:39 -0400, Kyle Loveless wrote:
>
>> Any more thoughts on how to solve these issues? Perhaps I'm trying to use
>> cook in an unexpected way.
>
> I use cook include files. The file names in the recipes are all
> relative to the top-level directory. I always type cook from the
> top-level directory, never a sub-directory. Also, cook_bom(1) can help.
>
> --
> Peter Miller <peter.miller.aus at gmail.com>
> _______________________________________________
> Cook-users mailing list
> Cook-users at lists.auug.org.au
> http://lists.auug.org.au/listinfo/cook-users
This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system.
More information about the Cook-users
mailing list