use global rebar

Project: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/commit/45099028
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/tree/45099028
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/diff/45099028

Branch: refs/heads/upstream
Commit: 45099028d824444b0e43b837671f9cbc385c7efa
Parents: 94fab9a
Author: benoitc <[email protected]>
Authored: Fri Nov 6 11:36:09 2015 +0100
Committer: benoitc <[email protected]>
Committed: Fri Nov 6 11:37:09 2015 +0100

----------------------------------------------------------------------
 Makefile |  10 ++++++----
 rebar    | Bin 188026 -> 0 bytes
 2 files changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/blob/45099028/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index d2e61c6..4df166b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,20 +3,22 @@ IBROWSE_VSN = $(shell sed -n 's/.*{vsn,.*"\(.*\)"}.*/\1/p' 
src/ibrowse.app.src)
 DIALYZER_PLT=$(CURDIR)/.dialyzer_plt
 DIALYZER_APPS=erts kernel stdlib ssl crypto public_key
 
+REBAR ?= $(shell which rebar)
+
 all: compile
 
 compile:
-       ./rebar compile
+       $(REBAR) compile
 
 clean:
-       ./rebar clean
+       $(REBAR) clean
 
 install: compile
        mkdir -p $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
        cp -r ebin $(DESTDIR)/lib/ibrowse-$(IBROWSE_VSN)/
 
 eunit_test: all
-       ./rebar eunit
+       $(REBAR) eunit
 
 test: all
        cd test; erl -pa ../../ibrowse/ebin -make; cd ../; \
@@ -26,7 +28,7 @@ test: all
        -s erlang halt
 
 xref: all
-       ./rebar xref
+       $(REBAR) xref
 
 docs:
        erl -noshell \

http://git-wip-us.apache.org/repos/asf/couchdb-ibrowse/blob/45099028/rebar
----------------------------------------------------------------------
diff --git a/rebar b/rebar
deleted file mode 100755
index 8e4deb6..0000000
Binary files a/rebar and /dev/null differ

Reply via email to