~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-17 08:04:15 UTC
  • mfrom: (2423.1.2 benchmarks)
  • Revision ID: pqm@pqm.ubuntu.com-20070417080415-5vn25svmf95ki88z
Also clear SmartTCPServer hooks from TestCase._clear_hooks

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
all:
2
2
 
3
3
check:
4
 
        ./bzr selftest -v $(tests)
 
4
        python -Werror ./bzr selftest -v $(tests)
5
5
        @echo "Running all tests with no locale."
6
6
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
 
7
        python -O -Werror ./bzr selftest -v $(tests)
7
8
 
8
9
check-msgeditor:
9
10
        ./bzr --no-plugins selftest -v msgeditor
18
19
        pyflakes bzrlib | grep -v ' imported but unused'
19
20
 
20
21
clean:
21
 
        ./setup.py clean
 
22
        python setup.py clean
22
23
        -find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
23
24
        rm -rf test????.tmp
24
25
 
31
32
        ctags-exuberant -e $(tag_files)
32
33
 
33
34
 
 
35
# Produce HTML docs to upload on Canonical server
 
36
HTMLDIR := html_docs
 
37
PRETTYDIR := pretty_docs
 
38
 
 
39
html-docs: docs
 
40
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css $(HTMLDIR)
 
41
 
 
42
 
 
43
# translate txt docs to html
 
44
doc_dir := doc 
 
45
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir))) doc/bzr_man.txt
 
46
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) 
 
47
 
 
48
pretty-html-docs: pretty_files
 
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/HACKING.htm: HACKING
 
56
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css HACKING doc/HACKING.htm
 
57
 
 
58
doc/%.htm: doc/%.txt 
 
59
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css doc/$*.txt doc/$*.htm
 
60
 
 
61
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
 
62
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
 
63
        $(PRETTYDIR)/$*.htm
 
64
 
 
65
doc/bzr_man.txt: bzrlib/builtins.py \
 
66
                 bzrlib/bundle/commands.py \
 
67
                 bzrlib/conflicts.py \
 
68
                 bzrlib/sign_my_commits.py \
 
69
                 generate_docs.py \
 
70
                 tools/doc_generate/__init__.py \
 
71
                 tools/doc_generate/autodoc_rstx.py
 
72
        python generate_docs.py -o doc/bzr_man.txt rstx
 
73
 
 
74
docs: $(htm_files) doc/HACKING.htm
 
75
 
 
76
copy-docs: docs
 
77
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
 
78
 
 
79
# clean produced docs
 
80
clean-docs:
 
81
        python tools/win32/ostools.py remove doc/bzr_man.txt $(htm_files) \
 
82
        $(HTMLDIR) $(PRETTYDIR)
 
83
 
 
84
 
34
85
# make bzr.exe for win32 with py2exe
35
86
exe:
36
87
        @echo *** Make bzr.exe
38
89
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
39
90
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
40
91
 
41
 
# translate txt docs to html
42
 
doc_dir := doc 
43
 
txt_files := $(wildcard $(addsuffix /*.txt, $(doc_dir)))
44
 
htm_files := $(patsubst %.txt, %.htm, $(txt_files)) doc/bzr_man.htm
45
 
 
46
 
%.htm: %.txt
47
 
        rst2html.py --link-stylesheet --stylesheet=default.css $*.txt $*.htm
48
 
 
49
 
doc/bzr_man.txt:
50
 
        generate_docs.py -o doc/bzr_man.txt rstx
51
 
 
52
 
docs: $(htm_files)
53
 
 
54
 
copy_docs: docs
55
 
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
56
 
 
57
92
# win32 installer for bzr.exe
58
 
installer: exe copy_docs
 
93
installer: exe copy-docs
59
94
        @echo *** Make windows installer
60
95
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
61
96
        iscc /Q tools/win32/bzr.iss
63
98
# win32 python's distutils-based installer
64
99
# require to have python interpreter installed on win32
65
100
python-installer: docs
66
 
        python setup.py bdist_wininst --title="Bazaar" --install-script="bzr-win32-bdist-postinstall.py"
 
101
        python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
67
102
 
68
103
 
69
104
# clean on win32 all installer-related files and directories
70
 
clean_win32:
 
105
clean-win32:
71
106
        python tools/win32/ostools.py remove build
72
107
        python tools/win32/ostools.py remove win32_bzr.exe
73
108
        python tools/win32/ostools.py remove py2exe.log
75
110
        python tools/win32/ostools.py remove doc/bzr_man.txt
76
111
        python tools/win32/ostools.py remove tools/win32/bzr.iss
77
112
        python tools/win32/ostools.py remove bzr-setup*.exe
 
113
        python tools/win32/ostools.py remove bzr-*win32.exe
78
114
        python tools/win32/ostools.py remove dist