Permalink
Browse files

Cleanup Makefile

  • Loading branch information...
1 parent ad1d4c5 commit 64d0e65d40cbdd4d5fa9e843e4bbccd34cf9e2ed @davisp committed Apr 23, 2012
Showing with 12 additions and 6 deletions.
  1. +12 −6 Makefile
View
@@ -7,11 +7,17 @@ clean:
rm -rf .eunit
rm test/*.beam
-deps: ./deps/
- ./rebar get-deps update-deps
-
-
-build: deps
+depends:
+ @if test ! -d ./deps; then \
+ ./rebar get-deps; \
+ else \
+ ./rebar update-deps; \
+ fi
+
+build:
+ @if test ! -d ./deps; then \
+ ./rebar get-deps; \
+ fi
./rebar compile
@@ -23,7 +29,7 @@ eunit:
./rebar eunit skip_deps=true
-check: etap eunit
+check: build etap eunit
%.beam: %.erl

0 comments on commit 64d0e65

Please sign in to comment.