Permalink
Browse files

Don't assume that . is in path

  • Loading branch information...
1 parent b8cb5f8 commit 81156a4a3c112d3f486bf334adc1c0793056f571 @dLuna dLuna committed Oct 8, 2012
Showing with 6 additions and 5 deletions.
  1. +6 −5 Makefile
View
@@ -19,6 +19,7 @@
## LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
## FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
## DEALINGS IN THE SOFTWARE.
+REBAR=$(shell which rebar || echo ./rebar)
.PHONY: all compile clean eunit test eqc doc check dialyzer
@@ -29,19 +30,19 @@ all: compile
check: compile dialyzer
compile:
- rebar compile
+ $(REBAR) compile
clean:
- rebar clean
+ $(REBAR) clean
eunit:
- rebar eunit
+ $(REBAR) eunit
test: eunit
doc:
- rebar doc
+ $(REBAR) doc
dialyzer:
- rebar skip_deps=true dialyze
+ $(REBAR) skip_deps=true dialyze

0 comments on commit 81156a4

Please sign in to comment.