diff options
author | Loïc Hoguin <[email protected]> | 2017-04-10 15:43:32 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-04-10 15:43:32 +0200 |
commit | 7a200f54a9c0a41be4bad93e3ad0b19bbde5267f (patch) | |
tree | d69963d0d2abf03acd5faa576d0030599d201c1d /core | |
parent | e0ebd0a1f395dc8b9813b490fc7b0104942f0927 (diff) | |
download | erlang.mk-7a200f54a9c0a41be4bad93e3ad0b19bbde5267f.tar.gz erlang.mk-7a200f54a9c0a41be4bad93e3ad0b19bbde5267f.tar.bz2 erlang.mk-7a200f54a9c0a41be4bad93e3ad0b19bbde5267f.zip |
Only makedep and build asn1/xrl/mib files when necessary
Because we were unconditionally including the makedep file,
it would be built even if the target was unrelated (like
"make help"), and it would also trigger building of xrl
and other files that produce Erlang code.
Instead the makedep file is now included as a wildcard:
if it exists it gets included, if it doesn't it's not,
and if it's created in the middle of execution it gets
included only then.
More details on the technique can be found at
http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
A test has been added to make sure the behavior does not
come back at a later time.
Diffstat (limited to 'core')
-rw-r--r-- | core/erlc.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/erlc.mk b/core/erlc.mk index 65ef71b..8a8aea0 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -238,7 +238,7 @@ $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES): ebin/$(PROJECT).app:: $(ERLANG_MK_TMP)/last-makefile-change endif --include $(PROJECT).d +include $(wildcard $(PROJECT).d) ebin/$(PROJECT).app:: ebin/ |