From 02d72e8d7f7836c6ca45ea34c1529a76f89d1761 Mon Sep 17 00:00:00 2001 From: Brett Hazen Date: Sun, 24 Jul 2016 16:13:25 -0600 Subject: [PATCH] Make REBAR actually configurable --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 00cb63648..e517a748a 100644 --- a/Makefile +++ b/Makefile @@ -11,36 +11,36 @@ OVERLAY_VARS ?= all: deps compile - ./rebar skip_deps=true escriptize + $(REBAR) skip_deps=true escriptize .PHONY: deps compile rel lock locked-all locked-deps rel: deps compile - cd rel && ../rebar generate skip_deps=true $(OVERLAY_VARS) + cd rel && .$(REBAR) generate skip_deps=true $(OVERLAY_VARS) deps: - ./rebar get-deps + $(REBAR) get-deps ## ## Lock Targets ## ## see https://github.com/seth/rebar_lock_deps_plugin lock: deps compile - ./rebar lock-deps + $(REBAR) lock-deps locked-all: locked-deps compile locked-deps: @echo "Using rebar.config.lock file to fetch dependencies" - ./rebar -C rebar.config.lock get-deps + $(REBAR) -C rebar.config.lock get-deps compile: deps # Temp hack to work around https://github.com/basho/riak-erlang-client/issues/151 - (cd deps/riak_pb ; ./rebar clean compile deps_dir=..) - @(./rebar compile) + (cd deps/riak_pb ; $(REBAR) clean compile deps_dir=..) + @($(REBAR) compile) clean: - @./rebar clean + @$(REBAR) clean distclean: clean @rm -rf basho_bench deps