/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 07:13:17 UTC
  • mfrom: (2425.2.4 see-also)
  • mto: This revision was merged to the branch mainline in revision 2427.
  • Revision ID: robertc@robertcollins.net-20070419071317-p1pem58mcxxwbg9j
(robertc) Merge see-also support for command help. (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
MAN_DEPENDENCIES = 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
 
 
73
doc/bzr_man.txt: $(MAN_DEPENDENCIES)
 
74
        python generate_docs.py -o $@ rstx
 
75
 
 
76
MAN_PAGES = man1/bzr.1
 
77
man1/bzr.1: $(MAN_DEPENDENCIES)
 
78
        python generate_docs.py -o $@ man
 
79
 
 
80
docs: $(htm_files) $(MAN_PAGES) doc/HACKING.htm
 
81
 
 
82
copy-docs: docs
 
83
        python tools/win32/ostools.py copytodir $(htm_files) doc/default.css NEWS README  win32_bzr.exe/doc
 
84
 
 
85
# clean produced docs
 
86
clean-docs:
 
87
        python tools/win32/ostools.py remove $(htm_files) \
 
88
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt $(MAN_PAGES)
 
89
 
 
90
 
 
91
# make bzr.exe for win32 with py2exe
 
92
exe:
 
93
        @echo *** Make bzr.exe
 
94
        python setup.py py2exe > py2exe.log
 
95
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
 
96
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
 
97
 
 
98
# win32 installer for bzr.exe
 
99
installer: exe copy-docs
 
100
        @echo *** Make windows installer
 
101
        cog.py -d -o tools/win32/bzr.iss tools/win32/bzr.iss.cog
 
102
        iscc /Q tools/win32/bzr.iss
 
103
 
 
104
# win32 python's distutils-based installer
 
105
# require to have python interpreter installed on win32
 
106
python-installer: docs
 
107
        python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
 
108
 
 
109
 
 
110
# clean on win32 all installer-related files and directories
 
111
clean-win32:
 
112
        python tools/win32/ostools.py remove build
 
113
        python tools/win32/ostools.py remove win32_bzr.exe
 
114
        python tools/win32/ostools.py remove py2exe.log
 
115
        python tools/win32/ostools.py remove doc/*.htm
 
116
        python tools/win32/ostools.py remove doc/bzr_man.txt
 
117
        python tools/win32/ostools.py remove tools/win32/bzr.iss
 
118
        python tools/win32/ostools.py remove bzr-setup*.exe
 
119
        python tools/win32/ostools.py remove bzr-*win32.exe
 
120
        python tools/win32/ostools.py remove dist