From 0cdac548f4d9c05ecb2ca2ebfdfec8a491813e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 19 May 2015 18:04:31 +0300 Subject: 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. --- core/core.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/core.mk') 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) -- cgit v1.2.3