Rebar downloading via inets & bumbped otp vsn requirements
This commit is contained in:
16
Makefile
16
Makefile
@@ -1,12 +1,20 @@
|
||||
PROJECT = esqlite
|
||||
REBAR = ./rebar
|
||||
DIALYZER = dialyzer
|
||||
|
||||
REBAR := $(shell which rebar 2>/dev/null || echo ./rebar)
|
||||
REBAR_URL := https://github.com/downloads/basho/rebar/rebar
|
||||
|
||||
all: compile
|
||||
|
||||
rebar:
|
||||
wget https://github.com/downloads/basho/rebar/rebar -O $(REBAR)
|
||||
chmod u+x $(REBAR)
|
||||
#rebar:
|
||||
# wget https://github.com/downloads/basho/rebar/rebar -O $(REBAR)
|
||||
# chmod u+x $(REBAR)
|
||||
|
||||
./rebar:
|
||||
erl -noshell -s inets start -s ssl start \
|
||||
-eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream, "./rebar"}])' \
|
||||
-s inets stop -s init stop
|
||||
chmod +x ./rebar
|
||||
|
||||
compile: rebar
|
||||
$(REBAR) compile
|
||||
|
||||
Reference in New Issue
Block a user