use installed rebar, if exists

This commit is contained in:
Ulf Wiger 2013-10-14 16:06:30 +02:00
parent 3d8a01f547
commit b3e5372047

View File

@ -1,16 +1,18 @@
REBAR=$(shell which rebar || echo ./rebar)
.PHONY: rel all clean
all: compile
compile:
./rebar compile
$(REBAR) compile
clean:
./rebar clean
$(REBAR) clean
test:
./rebar eunit
$(REBAR) eunit
doc:
./rebar doc
$(REBAR) doc