Rev 55: Add Makefile. in http://people.samba.org/bzr/jelmer/bzr-git/trunk
Jelmer Vernooij
jelmer at samba.org
Sat Jul 26 17:27:36 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-git/trunk
------------------------------------------------------------
revno: 55
revision-id: jelmer at samba.org-20080725224552-tz7jwhm9oi4vrb6x
parent: jelmer at samba.org-20080703171404-wgj50outt1brkmvs
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 00:45:52 +0200
message:
Add Makefile.
added:
Makefile makefile-20080725224546-3tu3od9u8k8tdydk-1
=== added file 'Makefile'
--- a/Makefile 1970-01-01 00:00:00 +0000
+++ b/Makefile 2008-07-25 22:45:52 +0000
@@ -0,0 +1,54 @@
+DEBUGGER ?=
+BZR ?= $(shell which bzr)
+PYTHON ?= $(shell which python)
+SETUP ?= ./setup.py
+PYDOCTOR ?= pydoctor
+CTAGS ?= ctags
+PYLINT ?= pylint
+RST2HTML ?= rst2html
+TESTS ?=
+
+all:: build
+
+build::
+ $(SETUP) build
+
+build-inplace::
+
+install::
+ $(SETUP) install
+
+clean::
+ $(SETUP) clean
+ rm -f *.so
+
+TMP_PLUGINS_DIR = $(shell pwd)/.plugins
+
+$(TMP_PLUGINS_DIR):
+ mkdir -p $@
+
+$(TMP_PLUGINS_DIR)/git: $(TMP_PLUGINS_DIR)
+ ln -sf .. $@
+
+check:: build-inplace $(TMP_PLUGINS_DIR)/git
+ BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BZR) selftest $(TEST_OPTIONS) --starting-with=bzrlib.plugins.git $(TESTS)
+
+check-verbose::
+ $(MAKE) check TEST_OPTIONS=-v
+
+check-one::
+ $(MAKE) check TEST_OPTIONS=--one
+
+check-random::
+ $(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
+
+show-plugins::
+ BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(BZR) plugins
+
+lint::
+ $(PYLINT) -f parseable *.py */*.py
+
+tags::
+ $(CTAGS) -R .
+
+ctags:: tags
More information about the bazaar-commits
mailing list