Permalink
Browse files

fixes rebar management

  • Loading branch information...
videlalvaro committed Jun 13, 2011
1 parent a08df19 commit 45b1f0688c34f2744b402c938b5f7c0100bce0eb
Showing with 7 additions and 2 deletions.
  1. +7 −2 Makefile
View
@@ -1,9 +1,14 @@
+REBAR=`which rebar || ./rebar`
DEPS_DIR=deps
EBIN_DIR=ebin
all: compile
clean:
+ rm -rf $(DEPS_DIR)
+ rm -rf $(EBIN_DIR)
+
+clean-local:
rm -rf $(EBIN_DIR)
$(DEPS_DIR):
@@ -12,9 +17,9 @@ $(DEPS_DIR):
wget http://www.rabbitmq.com/releases/plugins/v2.4.1/rabbit_common-2.4.1.ez
unzip -d deps amqp_client-2.4.1.ez
unzip -d deps rabbit_common-2.4.1.ez
- ./rebar get-deps
+ @$(REBAR) get-deps
rm amqp_client-2.4.1.ez
rm rabbit_common-2.4.1.ez
compile: $(DEPS_DIR)
- ./rebar compile
+ @$(REBAR) compile

0 comments on commit 45b1f06

Please sign in to comment.