Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pawel@process-one.net>2022-01-03 15:51:49 +0300
committerPaweł Chmielowski <pawel@process-one.net>2022-01-03 15:51:58 +0300
commitdc8196693837650c973834ed5f634e1f6e8fa1e8 (patch)
tree138e8492b26afe77778fb53706ca0951a6c6ae4c /Makefile.in
parent59c9500944a8ba363bc75047a3c35192883149a6 (diff)
Fix 'make update' when used with rebar 3.18
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index ab0e9d967..3066488f0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -94,8 +94,10 @@ endif
ifeq "$(MIX)" "mix"
REBAR_VER:=6
+REBAR_VER_318:=0
else
REBAR_VER:=$(shell $(REBAR) --version | awk -F '[ .]' '/rebar / {print $$2}')
+REBAR_VER_318:=$(shell $(REBAR) --version | awk -F '[ .]' '/rebar / {print ($$2 == 3 && $$3 >= 18 ? 1 : 0)}')
endif
ifeq "$(REBAR_VER)" "6"
@@ -115,7 +117,11 @@ else
ifeq "$(REBAR_VER)" "3"
SKIPDEPS=
LISTDEPS=tree
+ifeq "$(REBAR_VER_318)" "1"
+ UPDATEDEPS=upgrade --all
+else
UPDATEDEPS=upgrade
+endif
DEPSPATTERN="s/ (.*//; /^ / s/.* \([a-z0-9_]*\).*/\1/p;"
DEPSBASE=_build
DEPSDIR=$(DEPSBASE)/default/lib