diff options
author | Paweł Chmielowski <pawel@process-one.net> | 2022-01-03 13:51:49 +0100 |
---|---|---|
committer | Paweł Chmielowski <pawel@process-one.net> | 2022-01-03 13:51:58 +0100 |
commit | dc8196693837650c973834ed5f634e1f6e8fa1e8 (patch) | |
tree | 138e8492b26afe77778fb53706ca0951a6c6ae4c /Makefile.in | |
parent | mod_muc_room: Fix function name typo (diff) |
Fix 'make update' when used with rebar 3.18
Diffstat (limited to '')
-rw-r--r-- | Makefile.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index ab0e9d96..3066488f 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 |