Table of Contents
A target defines how to do a specific task with source or object files, like compiling them, installing binaries, etc. A package has several standard targets associated to it, which are described below:
Builds the source package. This includes libraries, binary programs or whatever else that can be "built" in some way.
Cleans the source package in a soft way. This means that the package can be rebuilt without the need of reconfiguring it.
Cleans the source package in a hard way. This leaves the package as it was when the distribution file was unpacked. Implies a regular soft clean.
Deinstalls a previous installation of the software package.
Installs all result files coming from a build.
Targets can only be built if they are defined either by Generic.bt or by a Logic.bt file. Furthermore, the package must be configured; see Chapter 4, Automatic package configuration.
In Buildtool, the process of building a target is done by the bt_logic module. See next section.
buildtool make [[-h] | [--help]] [[-f file] | [--file=file]] [[-l logfile] | [--logfile=logfile]] [[-s stage] | [--stage=stage]] [target...]
The bt_logic module applies a stage to a target. A target is a single entity within the source tree that is given a name and is associated a set of stages. A stage is the specific status of a target at a specific time. For example, a target can be cleaned, built, installed, etc.
The following options are recognized:
-f file | --file=file
Instead of parsing Generic.bt or Logic.bt, parse file.
-h | --help
Show an usage messages.
-l file | --logfile=file
Enable the creation of a log file, which will be named file.
-s name | --stage=name
Apply the name stage to all given targets. This option is useless when using Buildtool's wrapper.
This section shows several examples on how to build targets inside a source package. Remember that the package must be configured before any target can be built.
To build a source package and generate binary (or target) files, simply issue:
$ buildtool build
To install the package after it has been built:
$ buildtool install
To do a soft clean:
$ buildtool clean
To do a complete clean:
$ buildtool cleandir