Use local rebar3 only if there isn't one installed

This commit is contained in:
Jesse Gumm 2019-08-21 11:59:43 -05:00
parent a0b9ad0e5f
commit 28847aa896
2 changed files with 13 additions and 6 deletions

View file

@ -1,4 +1,11 @@
REBAR_PATH = $(shell which rebar3)
ifeq ($(REBAR_PATH),)
REBAR = $(shell pwd)/rebar3
else
REBAR = rebar3
endif
all: compile