aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-06 23:45:56 +0200
committerLoïc Hoguin <[email protected]>2015-09-06 23:45:56 +0200
commit6e50b405d71b4e144f7a7629501e4ebe2139d432 (patch)
tree5d51b05b0392b245aa45c36ed530adec6cba5a0f /core
parent84cffff9f735f04dab0bbfe755c05ec252342a46 (diff)
downloaderlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.tar.gz
erlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.tar.bz2
erlang.mk-6e50b405d71b4e144f7a7629501e4ebe2139d432.zip
Add NO_MAKEDEP: don't rebuild .d file if it already exists
This is useful only for projects that are stable and rarely need to rebuild it. Check the guide additions for more info.
Diffstat (limited to 'core')
-rw-r--r--core/erlc.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/erlc.mk b/core/erlc.mk
index 5ce5d9e..c69060c 100644
--- a/core/erlc.mk
+++ b/core/erlc.mk
@@ -176,8 +176,10 @@ define makedep.erl
halt()
endef
+ifeq ($(if $(NO_MAKEDEP),$(wildcard $(PROJECT).d),),)
$(PROJECT).d:: $(ERL_FILES) $(call core_find,include/,*.hrl)
$(makedep_verbose) $(call erlang,$(call makedep.erl,$@))
+endif
-include $(PROJECT).d