Permalink
Browse files

Change which can specify rebar

Some users may use not rebar attached but installed in the system.
This changes which can specify rebar.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@debian.org>
  • Loading branch information...
1 parent 70fb7ca commit 21350d4ee7eba7e7420fd7cdb334c57c2d3d2b47 Nobuhiro Iwamatsu committed with Nobuhiro Iwamatsu Aug 2, 2012
Showing with 13 additions and 12 deletions.
  1. +13 −12 Makefile
View
@@ -1,22 +1,23 @@
.PHONY: deps test
+REBAR := ./rebar
all:
- @./rebar update-deps
- @./rebar get-deps
- @./rebar compile
- @./rebar xref skip_deps=true
- @./rebar eunit skip_deps=true
+ @$(REBAR) update-deps
+ @$(REBAR) get-deps
+ @$(REBAR) compile
+ @$(REBAR) xref skip_deps=true
+ @$(REBAR) eunit skip_deps=true
compile:
- @./rebar compile skip_deps=true
+ @$(REBAR) compile skip_deps=true
xref:
- @./rebar xref skip_deps=true
+ @$(REBAR) xref skip_deps=true
eunit:
- @./rebar eunit skip_deps=true
+ @$(REBAR) eunit skip_deps=true
clean:
- @./rebar clean skip_deps=true
+ @$(REBAR) clean skip_deps=true
distclean:
- @./rebar delete-deps
- @./rebar clean
+ @$(REBAR) delete-deps
+ @$(REBAR) clean
qc:
- @./rebar qc skip_deps=true
+ @$(REBAR) qc skip_deps=true

0 comments on commit 21350d4

Please sign in to comment.