From b7c68f7f2e3468f60e991923be5770740158e95e Mon Sep 17 00:00:00 2001 From: Maas-Maarten Zeeman Date: Fri, 2 Oct 2020 16:21:09 +0200 Subject: [PATCH] Removed dependency on wget, and bumped rebar3 version --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8fe05e9..981e179 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ PROJECT = esqlite DIALYZER = dialyzer +ERL ?= erl REBAR3 := $(shell which rebar3 2>/dev/null || echo ./rebar3) -REBAR3_VERSION := 3.10.0 +REBAR3_VERSION := 3.14.1 REBAR3_URL := https://github.com/erlang/rebar3/releases/download/$(REBAR3_VERSION)/rebar3 all: compile ./rebar3: - wget $(REBAR3_URL) + $(ERL) -noshell -s inets -s ssl \ + -eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR3_URL)", []}, [], [{stream, "./rebar3"}])' \ + -s init stop chmod +x ./rebar3 compile: rebar3