/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
0.436.87 by Jelmer Vernooij
Use selftest --starting-with.
7
TESTS ?= 
0.436.102 by Miklos Vajna
Add DESTDIR support to Makefile to make distro's life easier.
8
DESTDIR ?= 
0.436.78 by Jelmer Vernooij
add makefile.
9
10
all:: build 
11
12
build::
13
	$(SETUP) build
14
15
install::
0.436.102 by Miklos Vajna
Add DESTDIR support to Makefile to make distro's life easier.
16
ifneq ($(DESTDIR),)
17
	$(SETUP) install --root "$(DESTDIR)"
18
else
0.436.78 by Jelmer Vernooij
add makefile.
19
	$(SETUP) install
0.436.102 by Miklos Vajna
Add DESTDIR support to Makefile to make distro's life easier.
20
endif
0.436.78 by Jelmer Vernooij
add makefile.
21
22
clean::
23
	$(SETUP) clean
24
25
TMP_PLUGINS_DIR = $(shell pwd)/.plugins
26
27
$(TMP_PLUGINS_DIR):
28
	mkdir -p $@
29
30
$(TMP_PLUGINS_DIR)/rebase: $(TMP_PLUGINS_DIR)
31
	ln -sf .. $@
32
0.436.79 by Jelmer Vernooij
Fix tests when using the latest version of bzr.
33
check:: $(TMP_PLUGINS_DIR)/rebase/
0.436.148 by Jelmer Vernooij
Support existing BZR_PLUGIN_PATH, add coverage target.
34
	BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR):$(BZR_PLUGIN_PATH) $(DEBUGGER) $(PYTHON) $(BZR) $(BZR_OPTIONS) selftest $(TEST_OPTIONS) --starting-with=bzrlib.plugins.rebase $(TESTS)
0.436.78 by Jelmer Vernooij
add makefile.
35
36
check-verbose::
37
	$(MAKE) check TEST_OPTIONS=-v
38
0.436.148 by Jelmer Vernooij
Support existing BZR_PLUGIN_PATH, add coverage target.
39
coverage::
40
	$(MAKE) check BZR_OPTIONS="--coverage coverage"
41
0.436.78 by Jelmer Vernooij
add makefile.
42
check-one::
43
	$(MAKE) check TEST_OPTIONS=--one
44
45
show-plugins::
0.436.148 by Jelmer Vernooij
Support existing BZR_PLUGIN_PATH, add coverage target.
46
	BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR):$(BZR_PLUGIN_PATH) $(BZR) plugins
0.436.78 by Jelmer Vernooij
add makefile.
47
48
lint::
49
	$(PYLINT) -f parseable *.py */*.py
50
51
tags::
52
	$(CTAGS) -R .
53
54
ctags:: tags