Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 542 Bytes
REBAR=$(shell which rebar || echo ./rebar)
all: dirs compile
./rebar:
erl -noshell -s inets start -s ssl start \
-eval 'httpc:request(get, {"https://github.com/downloads/basho/rebar/rebar", []}, [], [{stream, "./rebar"}])' \
-s inets stop -s init stop
chmod +x ./rebar
dirs:
-@mkdir -p priv/tmp
compile: $(REBAR)
@$(REBAR) compile
clean: $(REBAR)
@$(REBAR) clean
deps: $(REBAR)
@$(REBAR) get-deps
examples: eg
eg:
@erlc -I deps -o ebin examples/*.erl
setuid: all
sudo chown root priv/procket
sudo chmod 4750 priv/procket
Jump to Line
Something went wrong with that request. Please try again.