We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba4dcff commit f440744Copy full SHA for f440744
core/erlc.mk
@@ -262,6 +262,12 @@ endef
262
263
ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),)
264
$(PROJECT).d:: $(ERL_FILES) $(EX_FILES) $(call core_find,include/,*.hrl) $(MAKEFILE_LIST)
265
+# Rebuild everything when the .d file does not exist.
266
+# We touch $@ to make sure the command doesn't fail in empty projects.
267
+# The file will be generated with content immediately after.
268
+ $(verbose) if ! test -e $@; then \
269
+ touch $@ $(ERL_FILES) $(CORE_FILES) $(ASN1_FILES) $(MIB_FILES) $(XRL_FILES) $(YRL_FILES); \
270
+ fi
271
$(makedep_verbose) $(call erlang,$(call makedep.erl,$@))
272
endif
273
0 commit comments