aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-10-19 17:29:04 +0200
committerLoïc Hoguin <[email protected]>2015-10-19 17:29:04 +0200
commit7f1ace7622a5a9e046b8ae10accc8169ab59b047 (patch)
tree78d91b77cd9a07f77faca2742e4cdf1ed4612c9e /plugins
parent77afa66836f92a1f1f2052e1a7d9ace9fd4cee57 (diff)
downloaderlang.mk-7f1ace7622a5a9e046b8ae10accc8169ab59b047.tar.gz
erlang.mk-7f1ace7622a5a9e046b8ae10accc8169ab59b047.tar.bz2
erlang.mk-7f1ace7622a5a9e046b8ae10accc8169ab59b047.zip
Force rebuilds on Makefile/.app.src changes
Everything will be rebuilt when the Makefile or any included Makefile (like Erlang.mk or plugins) change. Only the .app will be rebuilt when the .app.src file changes.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/erlydtl.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/erlydtl.mk b/plugins/erlydtl.mk
index dea6366..072da50 100644
--- a/plugins/erlydtl.mk
+++ b/plugins/erlydtl.mk
@@ -42,6 +42,10 @@ else
BEAM_FILES += $(addprefix ebin/,$(patsubst %.dtl,%_dtl.beam,$(notdir $(DTL_FILES))))
endif
+# Rebuild templates when the Makefile changes.
+$(DTL_FILES): $(MAKEFILE_LIST)
+ @touch $@
+
ebin/$(PROJECT).app:: $(DTL_FILES)
$(if $(strip $?),\
$(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$?,-pa ebin/ $(DEPS_DIR)/erlydtl/ebin/)))