aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-10-12 11:52:05 +0200
committerLoïc Hoguin <[email protected]>2015-10-12 11:52:05 +0200
commit77e3b8d0e63ecc2bfa46b3b3caf75c770b713d7b (patch)
treef23a6eff62fbe49780dc0cd1db4678e116543341 /plugins
parent62ac3a5f4e10b6409b5c80a8234e3e680132e111 (diff)
parent9de82c21954044969708ce019618a57aa59b8b53 (diff)
downloaderlang.mk-77e3b8d0e63ecc2bfa46b3b3caf75c770b713d7b.tar.gz
erlang.mk-77e3b8d0e63ecc2bfa46b3b3caf75c770b713d7b.tar.bz2
erlang.mk-77e3b8d0e63ecc2bfa46b3b3caf75c770b713d7b.zip
Merge branch 'fix-plugin-erlydtl' of https://github.com/bullno1/erlang.mk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/erlydtl.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/erlydtl.mk b/plugins/erlydtl.mk
index 1f33bc6..430ce5a 100644
--- a/plugins/erlydtl.mk
+++ b/plugins/erlydtl.mk
@@ -33,7 +33,12 @@ define erlydtl_compile.erl
endef
ifneq ($(wildcard src/),)
-ebin/$(PROJECT).app:: $(sort $(call core_find,$(DTL_PATH),*.dtl))
+
+DTL_FILES = $(sort $(call core_find,$(DTL_PATH),*.dtl))
+DTL_ERL_FILES = $(addprefix src/,$(patsubst %.dtl,%_dtl.erl,$(notdir $(DTL_FILES))))
+ERL_FILES += $(DTL_ERL_FILES)
+
+ebin/$(PROJECT).app:: $(DTL_FILES)
$(if $(strip $?),\
$(dtl_verbose) $(call erlang,$(call erlydtl_compile.erl,$?,-pa ebin/ $(DEPS_DIR)/erlydtl/ebin/)))
endif