diff options
author | bullno1 <[email protected]> | 2015-10-11 02:03:47 +0800 |
---|---|---|
committer | bullno1 <[email protected]> | 2015-10-11 02:03:47 +0800 |
commit | 9de82c21954044969708ce019618a57aa59b8b53 (patch) | |
tree | ea182cfc3eb0239ebcd7c8269b3897650a630ca8 /plugins | |
parent | 21fe6b0f86edb7925a41b2ac93c7e0a08cc3d1af (diff) | |
download | erlang.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')
-rw-r--r-- | plugins/erlydtl.mk | 7 |
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 |