couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [15/50] [abbrv] git commit: Cleanup Makefile
Date Fri, 17 Jan 2014 22:11:46 GMT
Cleanup Makefile


Project: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/commit/64d0e65d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/tree/64d0e65d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/diff/64d0e65d

Branch: refs/heads/import
Commit: 64d0e65d40cbdd4d5fa9e843e4bbccd34cf9e2ed
Parents: ad1d4c5
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Apr 23 13:05:40 2012 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Apr 23 13:05:40 2012 -0500

----------------------------------------------------------------------
 Makefile | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/64d0e65d/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index d9aa61f..fc014af 100644
--- a/Makefile
+++ b/Makefile
@@ -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


Mime
View raw message