~bzr-pqm/bzr/bzr.dev

1185.21.3 by Jelmer Vernooij
Remove executable properties from Makefile (set by bzr itself now)
1
all: 
1739.1.3 by Robert Collins
Merge bzr.dev.
2
	@echo "building extension modules."
1739.1.1 by Robert Collins
First cut at adding pyrex facilities.
3
	./setup.py build_ext -i
1102 by Martin Pool
- merge test refactoring from robertc
4
1739.1.3 by Robert Collins
Merge bzr.dev.
5
check: all
2080.2.2 by John Arbash Meinel
Teach the pqm to treat warnings as errors
6
	python -Werror ./bzr selftest -v $(tests)
1526.1.1 by Robert Collins
Run the test suite with no locale as well as the default locale. Also add a test for build_tree_shape to selftest.
7
	@echo "Running all tests with no locale."
1704.1.1 by Robert Collins
'bzr selftest' now shows a progress bar with the number of tests, and
8
	LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
2090.2.4 by Martin Pool
Make check should run under python -O too
9
	python -O -Werror ./bzr selftest -v $(tests)
1102 by Martin Pool
- merge test refactoring from robertc
10
1185.33.72 by Martin Pool
Fix commit message template for non-ascii files, and add test for handling of
11
check-msgeditor:
12
	./bzr --no-plugins selftest -v msgeditor
13
1773.4.1 by Martin Pool
Add pyflakes makefile target; fix many warnings
14
# Run Python style checker (apt-get install pyflakes)
15
pyflakes:
16
	pyflakes bzrlib
17
18
pyflakes-nounused:
19
	# There are many of these warnings at the moment and they're not a
20
	# high priority to fix
21
	pyflakes bzrlib | grep -v ' imported but unused'
22
23
clean:
1185.1.21 by Robert Collins
add a clean target
24
	./setup.py clean
1185.62.18 by John Arbash Meinel
From Jari Alto: Makefile fixes (clean target error suppression)
25
	-find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
1427 by Robert Collins
clean up test dirs on make clean
26
	rm -rf test????.tmp
1185.1.21 by Robert Collins
add a clean target
27
1102 by Martin Pool
- merge test refactoring from robertc
28
.PHONY: all
1158 by Martin Pool
- make target to build emacs TAGS file
29
30
31
# build emacs cross-reference
32
tag_files=./bzr ./bzrlib/*py ./bzrlib/selftest/*.py
33
TAGS: $(tag_files)
34
	ctags-exuberant -e $(tag_files)
1536.1.1 by Martin Pool
Move in tutorial text from wiki.
35
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
36
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
37
# Produce HTML docs to upload on Canonical server
38
HTMLDIR := html_docs
2054.2.14 by Aaron Bentley
Add 'pretty-docs' target to makefile
39
PRETTYDIR := pretty_docs
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
40
1711.2.129 by John Arbash Meinel
change htmldocs => html-docs, to be consistent with other -docs functions
41
html-docs: docs
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
42
	python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
43
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
44
45
# translate txt docs to html
46
doc_dir := doc 
2054.2.14 by Aaron Bentley
Add 'pretty-docs' target to makefile
47
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
48
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) 
49
2054.2.16 by Aaron Bentley
More updates from review comments
50
pretty-html-docs: pretty_files
2054.2.14 by Aaron Bentley
Add 'pretty-docs' target to makefile
51
52
pretty_docs:
53
	python -c "import os; os.mkdir('$(PRETTYDIR)')"
54
55
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
56
57
doc/%.htm: doc/%.txt
58
	python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
59
60
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
61
	python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
62
	$(PRETTYDIR)/$*.htm
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
63
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
64
doc/bzr_man.txt: bzrlib/builtins.py \
65
		 bzrlib/bundle/commands.py \
66
		 bzrlib/conflicts.py \
67
		 bzrlib/sign_my_commits.py \
68
		 generate_docs.py \
69
		 tools/doc_generate/__init__.py \
70
		 tools/doc_generate/autodoc_rstx.py
1912.4.1 by Alexander Belchenko
generate_docs.py should be invoked with python interpreter for cross-platform compatibility
71
	python generate_docs.py -o doc/bzr_man.txt rstx
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
72
73
docs: $(htm_files)
74
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
75
copy-docs: docs
1861.2.18 by Alexander Belchenko
Makefile: cross-platform actions for building installer
76
	python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
77
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
78
# clean produced docs
79
clean-docs:
2054.2.14 by Aaron Bentley
Add 'pretty-docs' target to makefile
80
	python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) \
81
	$(HTMLDIR) $(PRETTYDIR)
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
82
83
84
# make bzr.exe for win32 with py2exe
85
exe:
86
	@echo *** Make bzr.exe
87
	python setup.py py2exe > py2exe.log
88
	python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
89
	python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
90
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
91
# win32 installer for bzr.exe
1982.2.1 by Alexander Belchenko
small but important fix for 'make installer' dependencies
92
installer: exe copy-docs
1861.2.18 by Alexander Belchenko
Makefile: cross-platform actions for building installer
93
	@echo *** Make windows installer
94
	cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
95
	iscc /Q tools/win32/bzr.iss
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
96
1821.1.2 by Alexander Belchenko
resurrected python's distutils based installer for win32
97
# win32 python's distutils-based installer
98
# require to have python interpreter installed on win32
1860.1.3 by Alexander Belchenko
python-installer:
99
python-installer: docs
2245.4.5 by Alexander Belchenko
bzr-win32-bdist-postinstall.py: good win98 support
100
	python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
1821.1.2 by Alexander Belchenko
resurrected python's distutils based installer for win32
101
102
1821.1.1 by Alexander Belchenko
win32 installer for bzr.dev.0.9
103
# clean on win32 all installer-related files and directories
1928.2.1 by Alexander Belchenko
New target to produce html docs to upload on server
104
clean-win32:
1861.2.18 by Alexander Belchenko
Makefile: cross-platform actions for building installer
105
	python tools/win32/ostools.py remove build
106
	python tools/win32/ostools.py remove win32_bzr.exe
107
	python tools/win32/ostools.py remove py2exe.log
108
	python tools/win32/ostools.py remove doc/*.htm
109
	python tools/win32/ostools.py remove doc/bzr_man.txt
110
	python tools/win32/ostools.py remove tools/win32/bzr.iss
111
	python tools/win32/ostools.py remove bzr-setup*.exe
2245.4.5 by Alexander Belchenko
bzr-win32-bdist-postinstall.py: good win98 support
112
	python tools/win32/ostools.py remove bzr-*win32.exe
1861.2.18 by Alexander Belchenko
Makefile: cross-platform actions for building installer
113
	python tools/win32/ostools.py remove dist