From 9de82c21954044969708ce019618a57aa59b8b53 Mon Sep 17 00:00:00 2001 From: bullno1 Date: Sun, 11 Oct 2015 02:03:47 +0800 Subject: Ensure that modules generated from erlydtl are listed in .app file --- plugins/erlydtl.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins') 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 -- cgit v1.2.3