Permalink
Browse files

WHISTLE-42: updated more Makefiles

  • Loading branch information...
1 parent 2d6d9aa commit 60097dc5345c7267323f572f91babfc0608c6240 @jamesaimonetti jamesaimonetti committed Sep 13, 2012
Showing with 16 additions and 11 deletions.
  1. +6 −4 lib/gen_leader-1.0/Makefile
  2. +10 −7 lib/riak_err-1.0.1/Makefile
@@ -1,3 +1,5 @@
+ROOT = ../..
+REBAR = $(ROOT)/bin/rebar
DIALYZER=dialyzer
DIALYZER_OPTS=-Wno_return -Wrace_conditions -Wunderspecs -Wbehaviours
@@ -8,10 +10,10 @@ APPS=kernel stdlib erts compiler crypto
all: compile
compile:
- ./rebar compile
+ $(REBAR) compile
doc:
- ./rebar doc
+ $(REBAR) doc
plt: compile
$(DIALYZER) --build_plt --output_plt $(PLT_FILE) --apps $(APPS) ./ebin/
@@ -23,7 +25,7 @@ analyze: compile
$(DIALYZER) --plt $(PLT_FILE) $(DIALYZER_OPTS) -r ebin/
tests:
- ./rebar eunit
+ $(REBAR) eunit
clean:
- ./rebar clean
+ $(REBAR) clean
@@ -1,24 +1,27 @@
+ROOT = ../..
+REBAR = $(ROOT)/bin/rebar
+
all: app
app: compile
compile:
- ./rebar compile
+ $(REBAR) compile
clean:
- ./rebar clean
+ $(REBAR) clean
test: all
- ./rebar eunit
+ $(REBAR) eunit
build_plt: all
- ./rebar build-plt
+ $(REBAR) build-plt
analyze: all
- ./rebar dialyze
+ $(REBAR) dialyze
doc: all
- ./rebar doc
+ $(REBAR) doc
xref: all
- ./rebar xref
+ $(REBAR) xref

0 comments on commit 60097dc

Please sign in to comment.