Removed dependency on wget, and bumped rebar3 version

This commit is contained in:
Maas-Maarten Zeeman
2020-10-02 16:21:09 +02:00
parent 2fdd5834ad
commit b7c68f7f2e

View File

@@ -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