aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/erlydtl.mk
diff options
context:
space:
mode:
authorbullno1 <[email protected]>2015-10-11 02:03:47 +0800
committerbullno1 <[email protected]>2015-10-11 02:03:47 +0800
commit9de82c21954044969708ce019618a57aa59b8b53 (patch)
treeea182cfc3eb0239ebcd7c8269b3897650a630ca8 /plugins/erlydtl.mk
parent21fe6b0f86edb7925a41b2ac93c7e0a08cc3d1af (diff)
downloaderlang.mk-9de82c21954044969708ce019618a57aa59b8b53.tar.gz
erlang.mk-9de82c21954044969708ce019618a57aa59b8b53.tar.bz2
erlang.mk-9de82c21954044969708ce019618a57aa59b8b53.zip
Ensure that modules generated from erlydtl are listed in .app file
Diffstat (limited to 'plugins/erlydtl.mk')
-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