Name

bakefile — native makefiles generator

Synopsis

bakefile [ --version ] [ --help ] -fFORMAT -oOUTFILE [ -DVAR=VALUE ...] [ -IPATH ...] [ -v ] [ -q ] [ --dry-run ] [ --dump ] file.bkl

Description

bakefile creates various types of Makefiles and project files from a single project description called a "Bakefile".

Command Line Options

--version

Display Bakefile version and exit.

-h, --help

Display usage information and exit.

-fFORMAT, --format=FORMAT

Specify output format. Bakefile supports these formats:

FormatFile(s) Generated
autoconfMakefile.in for GNU Autoconf
borlandMakefile for Borland C++ and Borland make
cbuilderxBorland C++Builder X project files
dmarsGeneric Makefile for Digital Mars C/C++
dmars_smakeMakefile for Digital Mars C/C++ with SMAKE
gnuMakefile for GNU toolchain: GNU Make, GCC, etc.
mingwMakefile for MinGW toolchain: mingw32-make, MinGW port of GCC, etc.
msvcMakefile for Visual C++ with Microsoft nmake
msvc6prjMicrosoft Visual C++ 6.0 project files
msevc4prjMicrosoft Embedded Visual C++ 4 project files
symbianSymbian development files
watcomMakefile for OpenWatcom C/C++
xcode2Apple Xcode 2.x project files

-oOUTFILE, --output=OUTFILE

File to write generated makefile to. For those backends that generate more than one file, this option specifies the name of the main makefile.

-DVAR=VALUE

Define Bakefile variable. This definition overrides any definition from the ruleset or input makefile. You can use it to customize generated output.

-IPATH

Add path to the list of directories where Bakefile looks for rules and output templates.

--dry-run

Process the bakefile normally, but instead of creating or modifying files, just print which files would be changed without actually modifying them.

-v, --verbose

Be verbose.

-q, --quiet

Supress all output except for errors.

--debug

show internal debugging information

--dump

Dump all Bakefile variables and targets to standard output instead of generating output. This is only useful for debugging Bakefile or ill-behaving makefiles.

--output-deps=FILE

Output dependency information needed by bakefile_gen utility

--output-changes=FILE

Store list of changed files to the given file

--xml-cache=FILE

specify cache file where bakefile_gen stores pre-parsed XML files

Environment Variables

BAKEFILE_PATHS

List of directories where ruleset files are looked for (syntax is same as in PATH). Bakefile's data directory is always searched in addition to paths listed in BAKEFILE_PATHS, but BAKEFILE_PATHS has higher priority.