Skip to content
This repository
Browse code

Makefile: Use a REBAR variable

Using a REBAR variable makes it easy for the user to override
the REBAR to be called.
  • Loading branch information...
commit 07413113d5749dc1c3d9fb66ae36945310609555 1 parent 9fe8141
Hans Ulrich Niedermann authored March 23, 2011

Showing 1 changed file with 5 additions and 3 deletions. Show diff stats Hide diff stats

  1. 8  Makefile
8  Makefile
... ...
@@ -1,13 +1,15 @@
1 1
 # See LICENSE for licensing information.
2 2
 
  3
+REBAR = ./rebar
  4
+
3 5
 all: app
4 6
 
5 7
 app:
6  
-	@./rebar compile
  8
+	@$(REBAR) compile
7 9
 
8 10
 clean:
9  
-	@./rebar clean
  11
+	@$(REBAR) clean
10 12
 	rm -f erl_crash.dump
11 13
 
12 14
 test:
13  
-	@./rebar eunit
  15
+	@$(REBAR) eunit

0 notes on commit 0741311

Please sign in to comment.
Something went wrong with that request. Please try again.