summaryrefslogtreecommitdiff
path: root/deps/setup/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'deps/setup/Makefile')
-rw-r--r--deps/setup/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/setup/Makefile b/deps/setup/Makefile
index d86da5c..e4b0fc1 100644
--- a/deps/setup/Makefile
+++ b/deps/setup/Makefile
@@ -1,6 +1,6 @@
.PHONY: doc compile test compile_test clean_test run_test escriptize deps eunit
-REBAR ?= $(shell which rebar || echo ./rebar)
+REBAR ?= $(shell test -e `which rebar` 2>/dev/null && which rebar || echo "./rebar")
TESTDIRS= xtest/testapp-1 xtest/testapp-2