File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 17
17
ERLANG_MK_FILENAME := $(realpath $(lastword $(MAKEFILE_LIST ) ) )
18
18
export ERLANG_MK_FILENAME
19
19
20
- ERLANG_MK_VERSION = 69fa181
20
+ ERLANG_MK_VERSION = e13b4c7
21
21
ERLANG_MK_WITHOUT =
22
22
23
23
# Make 3.81 and 3.82 are deprecated.
@@ -669,6 +669,8 @@ define dep_autopatch_detect
669
669
echo mix; \
670
670
elif [ -f $(DEPS_DIR ) /$1/rebar.lock -o -f $(DEPS_DIR ) /$1/rebar.config ]; then \
671
671
echo rebar3; \
672
+ elif [ -f $(DEPS_DIR ) /$1/Makefile ]; then \
673
+ echo noop; \
672
674
else \
673
675
exit 99; \
674
676
fi \
@@ -1784,7 +1786,12 @@ export ELIXIR
1784
1786
1785
1787
ifeq ($(ELIXIR ) ,system)
1786
1788
# We expect 'elixir' to be on the path.
1787
- ELIXIR_LIBS ?= $(dir $(shell readlink -f `which elixir`) ) /../lib
1789
+ ELIXIR_BIN ?= $(shell readlink -f `which elixir`)
1790
+ ELIXIR_LIBS ?= $(abspath $(dir $(ELIXIR_BIN ) ) /../lib)
1791
+ # Fallback in case 'elixir' is a shim.
1792
+ ifeq ($(wildcard $(ELIXIR_LIBS ) /elixir/) ,)
1793
+ ELIXIR_LIBS = $(abspath $(shell elixir -e 'IO.puts(:code.lib_dir(:elixir) ) ')/../)
1794
+ endif
1788
1795
ELIXIR_LIBS := $(ELIXIR_LIBS )
1789
1796
export ELIXIR_LIBS
1790
1797
ERL_LIBS := $(ERL_LIBS ) :$(ELIXIR_LIBS )
You can’t perform that action at this time.
0 commit comments