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