aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 28a35d5..b7ee1e5 100644
--- a/Makefile
+++ b/Makefile
@@ -31,13 +31,13 @@ endif
REBAR=$(shell which rebar)
-ifeq ($(REBAR),)
+# If building on travis, use the rebar in the current directory
+ifeq ($(TRAVIS),true)
REBAR=$(CURDIR)/rebar
endif
-# Unset rebar when building on Travis
-ifeq ($(TRAVIS),true)
-REBAR=""
+ifeq ($(REBAR),)
+REBAR=$(CURDIR)/rebar
endif
# =============================================================================