aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-06-07 19:11:20 +0200
committerLoïc Hoguin <[email protected]>2013-06-07 19:11:20 +0200
commite27c8de02bf0499d81f4e3bd50540a8e8f3f4c78 (patch)
tree4bae54b2aa2168f9152fde5072467d89d74e49b2
parentb26beff4c8d6445f578debb2f4dc29edf381adab (diff)
parentc7d558fba942033e802a59254b10686e49ec2d69 (diff)
downloaderlang.mk-e27c8de02bf0499d81f4e3bd50540a8e8f3f4c78.tar.gz
erlang.mk-e27c8de02bf0499d81f4e3bd50540a8e8f3f4c78.tar.bz2
erlang.mk-e27c8de02bf0499d81f4e3bd50540a8e8f3f4c78.zip
Merge branch 'patch-1' of git://github.com/asabil/erlang.mk
-rw-r--r--erlang.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/erlang.mk b/erlang.mk
index 8df7ee2..28824f3 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -58,12 +58,12 @@ app: ebin/$(PROJECT).app
| sed 's/{modules, \[\]}/{modules, \[$(MODULES)\]}/' \
> ebin/$(PROJECT).app
-define compile_erl =
+define compile_erl
$(erlc_verbose) ERL_LIBS=deps erlc -v $(ERLC_OPTS) -o ebin/ -pa ebin/ \
$(COMPILE_FIRST_PATHS) $(1)
endef
-define compile_dtl =
+define compile_dtl
$(dtl_verbose) erl -noshell -pa ebin/ deps/erlydtl/ebin/ -eval ' \
Compile = fun(F) -> \
Module = list_to_atom( \
@@ -86,13 +86,13 @@ clean:
# Dependencies.
-define get_dep =
+define get_dep
@mkdir -p $(DEPS_DIR)
git clone -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1)
cd $(DEPS_DIR)/$(1) ; git checkout -q $(word 2,$(dep_$(1)))
endef
-define dep_target =
+define dep_target
$(DEPS_DIR)/$(1):
$(call get_dep,$(1))
endef