Rev 78: add makefile. in file:///data/jelmer/bzr-rebase/trunk/

Jelmer Vernooij jelmer at samba.org
Sun Mar 30 20:03:33 BST 2008


At file:///data/jelmer/bzr-rebase/trunk/

------------------------------------------------------------
revno: 78
revision-id: jelmer at samba.org-20080330190333-w794v09owd5v5mv5
parent: jelmer at samba.org-20080201002814-5qh7lpufup4sedw8
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sun 2008-03-30 21:03:33 +0200
message:
  add makefile.
added:
  Makefile                       makefile-20080330190326-ad4of1yovo6un1xf-1
=== added file 'Makefile'
--- a/Makefile	1970-01-01 00:00:00 +0000
+++ b/Makefile	2008-03-30 19:03:33 +0000
@@ -0,0 +1,46 @@
+DEBUGGER ?= 
+BZR ?= $(shell which bzr)
+PYTHON ?= $(shell which python)
+SETUP ?= ./setup.py
+CTAGS ?= ctags
+PYLINT ?= pylint
+TESTS ?= "^bzrlib.plugins.rebase"
+
+all:: build 
+
+build::
+	$(SETUP) build
+
+install::
+	$(SETUP) install
+
+clean::
+	$(SETUP) clean
+
+TMP_PLUGINS_DIR = $(shell pwd)/.plugins
+
+$(TMP_PLUGINS_DIR):
+	mkdir -p $@
+
+$(TMP_PLUGINS_DIR)/rebase: $(TMP_PLUGINS_DIR)
+	ln -sf .. $@
+
+check:: build-inplace $(TMP_PLUGINS_DIR)rebase/
+	BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(BZR) selftest $(TEST_OPTIONS) $(TESTS)
+
+check-verbose::
+	$(MAKE) check TEST_OPTIONS=-v
+
+check-one::
+	$(MAKE) check TEST_OPTIONS=--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