Repository: couchdb-snappy
Updated Branches:
  refs/heads/master ca6de91d1 -> 0ab2796f8


Standardize Makefile commands


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

Branch: refs/heads/master
Commit: b891ec196bde2217caa429e0e260827b0d98d9e4
Parents: ca6de91
Author: Alexander Shorin <[email protected]>
Authored: Fri Jul 24 07:25:37 2015 +0300
Committer: Alexander Shorin <[email protected]>
Committed: Fri Jul 24 07:28:50 2015 +0300

----------------------------------------------------------------------
 Makefile | 43 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-snappy/blob/b891ec19/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index db6c962..058a7ec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,41 @@
-all: snappy eunit
+REBAR?=rebar
 
-snappy:
-       rebar compile
 
-eunit:
-       rebar eunit
+.PHONY: all
+# target: all - Makes everything
+all: build
+
+
+.PHONY: build
+# target: build - Builds the project
+build:
+       $(REBAR) compile
 
-check: eunit
 
+.PHONY: check
+# target: check - Checks if project builds and passes all the tests
+check: build eunit
+
+
+.PHONY: clean
+# target: clean - Removes build artifacts
 clean:
-       rebar clean
-       rm -fr priv ebin
+       $(REBAR) clean
+
+
+.PHONY: distclean
+# target: distclean - Removes all unversioned files
+distclean: clean
+       git clean -fxd
+
+
+.PHONY: eunit
+# target: eunit - Runs eunit test suite
+eunit:
+       $(REBAR) eunit
+
 
+.PHONY: help
+# target: help - Prints this help
+help:
+       @egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort

Reply via email to