diff options
author | Loïc Hoguin <[email protected]> | 2015-09-06 23:45:56 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-09-06 23:45:56 +0200 |
commit | 6e50b405d71b4e144f7a7629501e4ebe2139d432 (patch) | |
tree | 5d51b05b0392b245aa45c36ed530adec6cba5a0f /core | |
parent | 84cffff9f735f04dab0bbfe755c05ec252342a46 (diff) | |
download | erlang.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.mk | 2 |
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 |