/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
0.436.78 by Jelmer Vernooij
add makefile.
1
DEBUGGER ?= 
2
BZR ?= $(shell which bzr)
3
PYTHON ?= $(shell which python)
4
SETUP ?= ./setup.py
5
CTAGS ?= ctags
6
PYLINT ?= pylint
7
TESTS ?= "^bzrlib.plugins.rebase"
8
9
all:: build 
10
11
build::
12
	$(SETUP) build
13
14
install::
15
	$(SETUP) install
16
17
clean::
18
	$(SETUP) clean
19
20
TMP_PLUGINS_DIR = $(shell pwd)/.plugins
21
22
$(TMP_PLUGINS_DIR):
23
	mkdir -p $@
24
25
$(TMP_PLUGINS_DIR)/rebase: $(TMP_PLUGINS_DIR)
26
	ln -sf .. $@
27
0.436.79 by Jelmer Vernooij
Fix tests when using the latest version of bzr.
28
check:: $(TMP_PLUGINS_DIR)/rebase/
0.436.78 by Jelmer Vernooij
add makefile.
29
	BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(BZR) selftest $(TEST_OPTIONS) $(TESTS)
30
31
check-verbose::
32
	$(MAKE) check TEST_OPTIONS=-v
33
34
check-one::
35
	$(MAKE) check TEST_OPTIONS=--one
36
37
show-plugins::
38
	BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(BZR) plugins
39
40
lint::
41
	$(PYLINT) -f parseable *.py */*.py
42
43
tags::
44
	$(CTAGS) -R .
45
46
ctags:: tags