Erlang.mk allows you to customize which components are to be included
in the erlang.mk file. The WITHOUT
variable allows you to
remove components from the default Erlang.mk build. The build.config
file lets you define exactly what goes in (including your own code!),
and in what order.
The WITHOUT
file contains the list of components to exclude from
the build. For example, to exclude the package index and the EDoc
plugin when bootstrapping your application:
$ make -f erlang.mk bootstrap WITHOUT="index plugins/edoc"
The generated Erlang.mk will never include those components when
you update it, until you change your mind and use the WITHOUT
variable again when you upgrade:
$ make erlang-mk WITHOUT=index
The build.config file is automatically used when you bootstrap
Erlang.mk or when you update it with make erlang-mk
.
The build.config file contains the list of all files that will
be built into the resulting erlang.mk file. You can start from
the most recent version
and customize to your needs.
You can also name the file differently or put it in a separate folder
by modifying the value for ERLANG_MK_BUILD_CONFIG
. You can also
tell Erlang.mk to use a different temporary directory by changing
the ERLANG_MK_BUILD_DIR
variable.