Autodiscovering Build System
Download cook-2.27-autobuild-1.1.tar.gzInstallation
Create a scratch directory, change to it, and download the tarball:
% wget http://www.cg-soft.com/download/build/cook-2.27-autobuild-1.1.tar.gz
Unpack
% tar xvfz cook-2.27-autobuild-1.0.tar.gz
Configure and install. Note you must either have access to the installation directory or be root to install in the default location.
% cd cook-2.27-autobuild-1.0 % ./configure --prefix=/your/favorite/location % make install
This will install both Peter Miller's cook software and the autobuild extension. To test the autobuild examples, run:
% cd examples % /your/favorite/location/bin/b install
Examples
The sample source tree demonstrates some of the capabilities of the autobuild extension to cook.
The structure in the examples directory represents the recommended top level layout for a large project. The Howto.cook file here is a real one. All "b" does is cd into this directory, then run cook with an argument specifying where in the source tree "b" was invoked
There are four sample "hello world" variants in the examples directory, each demonstrating commonly used patterns. There are many more patterns supported bu the autobuild extension, and examples of all of them will be added in future versions.
- src/hello_world_1
- A simple executable;
- src/hello_world_2
- A complex executable compiled from two source files;
- src/hello_world_3
- A simple executable and a library;
- src/hello_world_4
- A simple executable with a library and a third party dependency.
- pkg/hello_world
- An rpm packing up all of the four executables above.
- 3party/noarch/hello_world.tar.gz
- Sample third party package used by hello_world_4.
