BSDBuild auto-bundling script
utility copies installed BSDBuild
include files from their system location to
under the working directory. It accepts
a list of BSDBuild modules as arguments (e.g., ‘prog’ will cause
to be installed).
also scans for
include directives and will automatically install all dependencies as well.
The BSDBuild build system is designed to be bundled with applications as a
stand-alone set of
include files, which are typically installed in a directory named
in the top-level directory (or some
other central location) in an application source code, such that people
building applications which use the BSDBuild build system do not need to have
BSDBuild or any other software installed on their systems.
While the need for a mk
directory may be
perceived as a problem, there are several advantages:
- Makefiles are not generated, they can be edited directly. BSDBuild will
generate Makefiles only when performing concurrent builds (i.e., building
object files in a directory separate from the source tree).
- BSDBuild makefiles are orders of magnitude smaller than any generated
Makefile, avoiding masses of redundant code.
- There is no Makefile.in, so the total
number of files in your tree is reduced.