aboutsummaryrefslogtreecommitdiffstats
path: root/core/core.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-19 18:04:31 +0300
committerLoïc Hoguin <[email protected]>2015-05-19 18:04:31 +0300
commit0cdac548f4d9c05ecb2ca2ebfdfec8a491813e91 (patch)
tree99df4987bfc0d90364899b6a54b5889b948f1681 /core/core.mk
parent94f223220e1c32fe6f1051a263451d00d8331ddb (diff)
downloaderlang.mk-0cdac548f4d9c05ecb2ca2ebfdfec8a491813e91.tar.gz
erlang.mk-0cdac548f4d9c05ecb2ca2ebfdfec8a491813e91.tar.bz2
erlang.mk-0cdac548f4d9c05ecb2ca2ebfdfec8a491813e91.zip
Import rebar_utils for improved compatibility
This allows us to skip some of the worst hacks and improve compatibility since we are using the original code.
Diffstat (limited to 'core/core.mk')
-rw-r--r--core/core.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/core.mk b/core/core.mk
index 60e9a9b..75a3706 100644
--- a/core/core.mk
+++ b/core/core.mk
@@ -28,6 +28,11 @@ V ?= 0
gen_verbose_0 = @echo " GEN " $@;
gen_verbose = $(gen_verbose_$(V))
+# Temporary files directory.
+
+ERLANG_MK_TMP ?= $(CURDIR)/.erlang.mk
+export ERLANG_MK_TMP
+
# "erl" command.
ERL = erl +A0 -noinput -boot start_clean
@@ -119,7 +124,7 @@ endef
# Adding erlang.mk to make Erlang scripts who call init:get_plain_arguments() happy.
define erlang
-$(ERL) -eval "$(subst $(newline),,$(subst ",\",$(1)))" -- erlang.mk
+$(ERL) -pa $(ERLANG_MK_TMP)/ebin -eval "$(subst $(newline),,$(subst ",\",$(1)))" -- erlang.mk
endef
ifeq ($(shell which wget 2>/dev/null | wc -l), 1)