/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Robert Collins
  • Date: 2007-04-19 05:21:37 UTC
  • mto: (2425.1.2 integration)
  • mto: This revision was merged to the branch mainline in revision 2427.
  • Revision ID: robertc@robertcollins.net-20070419052137-vsncwlmi8epl5eel
Update existing builtin commands help text to use _see_also. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
all: 
 
1
all:
2
2
 
3
3
check:
4
 
        ./bzr selftest $(tests)
 
4
        python -Werror ./bzr selftest -v $(tests)
5
5
        @echo "Running all tests with no locale."
6
 
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest $(tests)
 
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
10
11
 
11
 
clean: 
12
 
        ./setup.py clean
 
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:
 
22
        python setup.py clean
13
23
        -find . -name "*.pyc" -o -name "*.pyo" | xargs rm -f
14
24
        rm -rf test????.tmp
15
25
 
21
31
TAGS: $(tag_files)
22
32
        ctags-exuberant -e $(tag_files)
23
33
 
24
 
tutorial.html: tutorial.txt
25
 
        rest2html tutorial.txt > tutorial.html
 
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
 
 
85
# make bzr.exe for win32 with py2exe
 
86
exe:
 
87
        @echo *** Make bzr.exe
 
88
        python setup.py py2exe > py2exe.log
 
89
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
 
90
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
 
91
 
 
92
# win32 installer for bzr.exe
 
93
installer: exe copy-docs
 
94
        @echo *** Make windows installer
 
95
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
 
96
        iscc /Q tools/win32/bzr.iss
 
97
 
 
98
# win32 python's distutils-based installer
 
99
# require to have python interpreter installed on win32
 
100
python-installer: docs
 
101
        python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
 
102
 
 
103
 
 
104
# clean on win32 all installer-related files and directories
 
105
clean-win32:
 
106
        python tools/win32/ostools.py remove build
 
107
        python tools/win32/ostools.py remove win32_bzr.exe
 
108
        python tools/win32/ostools.py remove py2exe.log
 
109
        python tools/win32/ostools.py remove doc/*.htm
 
110
        python tools/win32/ostools.py remove doc/bzr_man.txt
 
111
        python tools/win32/ostools.py remove tools/win32/bzr.iss
 
112
        python tools/win32/ostools.py remove bzr-setup*.exe
 
113
        python tools/win32/ostools.py remove bzr-*win32.exe
 
114
        python tools/win32/ostools.py remove dist