aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/erlydtl.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-01-08 13:40:43 +0100
committerLoïc Hoguin <[email protected]>2015-01-08 13:40:43 +0100
commitabb11f81f5e23ebda3334f1a8669aa9097a3895d (patch)
tree101774c96c0c89cf0782d7403a978e1ae7a9f89f /plugins/erlydtl.mk
parent2a6499a167354f2a1259b28b2c3105f08db977d1 (diff)
downloaderlang.mk-abb11f81f5e23ebda3334f1a8669aa9097a3895d.tar.gz
erlang.mk-abb11f81f5e23ebda3334f1a8669aa9097a3895d.tar.bz2
erlang.mk-abb11f81f5e23ebda3334f1a8669aa9097a3895d.zip
Speed up "erl" invocations
Use "+A0 -noinput -boot start_clean" as start argument. Use halt/{1,2} to shutdown the VM faster.
Diffstat (limited to 'plugins/erlydtl.mk')
-rw-r--r--plugins/erlydtl.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/erlydtl.mk b/plugins/erlydtl.mk
index 8d8795f..ffebb33 100644
--- a/plugins/erlydtl.mk
+++ b/plugins/erlydtl.mk
@@ -13,7 +13,7 @@ dtl_verbose = $(dtl_verbose_$(V))
# Core targets.
define compile_erlydtl
- $(dtl_verbose) erl -noshell -pa ebin/ $(DEPS_DIR)/erlydtl/ebin/ -eval ' \
+ $(dtl_verbose) $(ERL) -pa ebin/ $(DEPS_DIR)/erlydtl/ebin/ -eval ' \
Compile = fun(F) -> \
S = fun (1) -> re:replace(filename:rootname(string:sub_string(F, 11), ".dtl"), "/", "_", [{return, list}, global]); \
(0) -> filename:basename(F, ".dtl") \
@@ -22,7 +22,7 @@ define compile_erlydtl
{ok, _} = erlydtl:compile(F, Module, [{out_dir, "ebin/"}, return_errors, {doc_root, "templates"}]) \
end, \
_ = [Compile(F) || F <- string:tokens("$(1)", " ")], \
- init:stop()'
+ halt().'
endef
ifneq ($(wildcard src/),)