19 lines
373 B
Makefile
19 lines
373 B
Makefile
REBAR=$(shell which rebar || echo ./rebar)
|
|
|
|
all: compile
|
|
|
|
./rebar:
|
|
erl -noshell -s inets start -s ssl start \
|
|
-eval 'httpc:request(get, {"https://github.com/downloads/basho/rebar/rebar", []}, [], [{stream, "./rebar"}])' \
|
|
-s init stop
|
|
chmod +x ./rebar
|
|
|
|
compile: $(REBAR)
|
|
@$(REBAR) compile
|
|
|
|
clean: $(REBAR)
|
|
@$(REBAR) clean
|
|
|
|
test: $(REBAR) compile
|
|
@$(REBAR) eunit
|