diff options
| author | Loïc Hoguin <[email protected]> | 2025-11-06 16:38:10 +0100 |
|---|---|---|
| committer | Loïc Hoguin <[email protected]> | 2025-11-06 16:38:10 +0100 |
| commit | f440744985ba962df91405940b2d8e437986d848 (patch) | |
| tree | 941fb2cad950a085c070b3a29bfabba62b035108 | |
| parent | ba4dcff32a52cb5e546c32cb343596956b26e4c0 (diff) | |
| download | erlang.mk-master.tar.gz erlang.mk-master.tar.bz2 erlang.mk-master.zip | |
This will ensure we properly rebuild projects that have
a .app file committed, since the .d file is not.
| -rw-r--r-- | core/erlc.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/erlc.mk b/core/erlc.mk index c956c4d..b2c18ac 100644 --- a/core/erlc.mk +++ b/core/erlc.mk @@ -262,6 +262,12 @@ endef ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),) $(PROJECT).d:: $(ERL_FILES) $(EX_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST) +# Rebuild everything when the .d file does not exist. +# We touch $@ to make sure the command doesn't fail in empty projects. +# The file will be generated with content immediately after. + $(verbose) if ! test -e $@; then \ + touch $@ $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \ + fi $(makedep_verbose) $(call erlang,$(call makedep.erl,$@)) endif |
