.\"
.\" cook - file construction tool
.\" Copyright (C) 1997-1999, 2001-2003 Peter Miller;
.\" All rights reserved.
.\"
.\" This program is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; if not, write to the Free Software
.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
.\"
.\" MANIFEST: input for archive/cook.html
.\"
.de an-p-footer
..
.ad l
.hy 0
.so version.so
Cook \*(v)
Cook \*(v)
Cook is a tool for constructing files. It is given a set of files to
create, and recipes of how to create them. In any non-trivial program
there will be prerequisites to performing the actions necessary to
creating any file, such as include files. Cook provides a
mechanism to define these.
.br
When a program is being developed or maintained, the programmer will
typically change one file of several which comprise the program. Cook
examines the last-modified times of the files to see when the
prerequisites of a file have changed, implying that the file needs to be
recreated as it is logically out of date.
.br
Cook also provides a facility for implicit recipes, allowing users to
specify how to form a file with a given suffix from a file with a
different suffix. For example, to create filename.o
from filename.c
.br
-
Cook is a replacement for the traditional make(1) tool.
| -
There is a make2cook utility included in the distribution
to help convert makefiles into cookbooks.
|
.br
-
Cook is more powerful than the traditional make tool.
|
.br
-
Cook has true variables, not simple macros.
| -
Cook has a simple but powerful string-based description language with
many built-in functions. This allows sophisticated filename
specification and manipulation without loss of readability or
performance.
|
.br
-
Cook has user defined functions.
|
.br
-
Cook can build in parallel.
| -
Cook is able to build your project with multiple parallel threads, with
support for rules which must be single threaded. It is possible to
distribute parallel builds over your LAN, allowing you to turn your
network into a virtual parallel build engine.
|
.br
-
Cook can distribute builds across your LAN.
|
.br
-
Cook is able to use fingerprints to supplement file modification
times. This allows build optimization without contorted rules.
| -
Cook can be configured with an explicit list of primary source files.
This allow the dependency graph to be constructed faster by not going
down dead ends, and also allows better error messages when the graph
can't be constructed. This requires an accurate source file manifest.
|
.br
-
In addition to walking the dependency graph,
Cook can turn the input rules into a shell script, or a web page.
|
.br
-
Cook runs on almost any flavor of UNIX. The source distribution is self
configuring using a GNU Autoconf generated configure script.
| -
Cook has special cascade dependencies, allowing powerful include
dependency specification, amongst other things.
|
.br
See the README file for a description
of the new features and bug-fixes in this release. This is also in the
Cook Reference Manual, along with the
build and installation instructions, and all of the manual pages.
.br
If you are putting together a source-code distribution and planning to
write a makefile, consider writing a cookbook instead. Although
Cook takes a day or two to learn, it is much more powerful and a bit
more intuitive than the traditional make(1) tool.
And Cook doesn't interpret tab differently to 8 space characters!
.br
Cook is written and owned by
Peter Miller
and is freely distributable under the terms and conditions of the
GNU GPL.
Cook is developed using Aegis,
a transaction
based software configuration management package.
There is more Software by Peter Miller
at his home page.
.br
This page has been accessed approximately
.nf
.fi
times since
.ds MO1 Jan
.ds MO2 Feb
.ds MO3 Mar
.ds MO4 Apr
.ds MO5 May
.ds MO6 Jun
.ds MO7 Jul
.ds MO8 Aug
.ds MO9 Sep
.ds MO10 Oct
.ds MO11 Nov
.ds MO12 Dec
.nr y4 \n[yr]+1900
\n[dy]-\*[MO\n[mo]]-\n[y4].