diff options
author | Jean-Sébastien Pédron <[email protected]> | 2019-06-21 14:46:22 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-06-24 15:38:51 +0200 |
commit | 87cba237455ca87324037c6c92495ec6a8c6a3f9 (patch) | |
tree | f50e5d6770b8f338ddae45a0fd5558157e1a8ef4 /test/Makefile | |
parent | 24ff52b9d3ec99528868c8e06bde17e9a51d6ba5 (diff) | |
download | erlang.mk-87cba237455ca87324037c6c92495ec6a8c6a3f9.tar.gz erlang.mk-87cba237455ca87324037c6c92495ec6a8c6a3f9.tar.bz2 erlang.mk-87cba237455ca87324037c6c92495ec6a8c6a3f9.zip |
Accept `$(force_rebuilding_dep)` to tune the behavior of `$(FULL)`
By default, Erlang.mk only builds dependencies once, the first time the
top-level project is compiled. A forced rebuild of all dependencies can
be forced by setting the `$(FULL)` variable to a non-empty value.
For developers working on the top-level project and one or more
dependencies at the same time, Erlang.mk now accepts a variable/function
called `$(force_rebuilding_dep)` which is called to determine if the
dependency passed as the first argument should be forcibly rebuilt.
It allows a developer to filter the dependencies he works on (so they
are always rebuilt) from other third-party dependencies he never touches
(i.e. they are only built once at the beginning).
The content of `$(force_rebuilding_dep)` is expected to be a shell
one-liner where the `$(1)` Make variable is set to the path to the
dependency.
Here is an example from the testsuite:
force_rebuilding_dep = test '$(1)' = '$(CURDIR)/deps/cowlib'
Diffstat (limited to 'test/Makefile')
0 files changed, 0 insertions, 0 deletions