couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [1/5] couchdb-mango git commit: Add Makefile
Date Sat, 01 Aug 2015 15:50:47 GMT
Repository: couchdb-mango
Updated Branches:
  refs/heads/master 0e355411f -> 677cd2a59


Add Makefile


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

Branch: refs/heads/master
Commit: 08294c6ca693dd834dbe71b50128292376b1bd8e
Parents: 0e35541
Author: Alexander Shorin <kxepal@apache.org>
Authored: Fri Jul 24 06:03:14 2015 +0300
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Wed Jul 29 22:37:41 2015 +0300

----------------------------------------------------------------------
 Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/08294c6c/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..8c136c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+REBAR?=rebar
+
+
+.PHONY: all
+# target: all - Makes everything
+all: build
+
+
+.PHONY: build
+# target: build - Builds the project
+build:
+	$(REBAR) compile
+
+
+.PHONY: check
+# target: check - Checks if project builds and passes all the tests
+check: build test
+
+
+.PHONY: clean
+# target: clean - Prints this help
+clean:
+	$(REBAR) clean
+	rm -f test/*.pyc
+
+
+.PHONY: distclean
+# target: distclean - Removes all unversioned files
+distclean: clean
+	git clean -fxd
+
+
+.PHONY: help
+# target: help - Prints this help
+help:
+	@egrep "^# target:" Makefile | sed -e 's/^# target: //g' | sort
+
+
+.PHONY: test
+# target: test - Runs test suite
+test:
+	nosetests
+
+
+.PHONY: pip-install
+# target: pip-install - Installs requires Python packages
+pip-install:
+	pip install nose requests
+
+
+.PHONY: venv
+# target: venv - Initializes virtual environment (requires virtualenv)
+venv:
+	virtualenv --python=python2.7 venv
+	@echo "VirtualEnv has been created. Don't forget to run . venv/bin/active"


Mime
View raw message