~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: v.ladeuil+lp at free
  • Date: 2007-05-18 18:20:31 UTC
  • mto: (2485.8.44 bzr.connection.sharing)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070518182031-gbg2cgidv5l20x9p
Takes Robert comments into account.

* bzrlib/transport/ftp.py:
(FtpTransport.__init__): Write a better explanation.

* bzrlib/tests/test_init.py:
(InstrumentedTransport): Just make hooks a class attribute.
(InstrumentedTransport._get_FTP): Run hook directly in the for
loop.
(TransportHooks.run_hook, TransportHooks.uninstall_hook): Not
needed. The hooks should be cleaned up by the test itself.
(TestInit.setUp.cleanup): Resset to default hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        @echo "building extension modules."
26
26
        python setup.py build_ext -i
27
27
 
28
 
check: docs extensions
 
28
check: extensions
29
29
        python -Werror ./bzr selftest -v $(tests)
30
30
        @echo "Running all tests with no locale."
31
31
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -v $(tests)
86
86
pretty_files: $(patsubst doc/%.txt, $(PRETTYDIR)/%.htm, $(txt_files))
87
87
 
88
88
doc/developers/%.htm: doc/developers/%.txt
89
 
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
 
89
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css $< $@
90
90
 
91
91
doc/developers/HACKING.htm: doc/developers/HACKING
92
 
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css --footnote-references=superscript $< $@
 
92
        python tools/rst2html.py --link-stylesheet --stylesheet=../default.css $< $@
93
93
 
94
94
%.htm: %.txt
95
 
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css --footnote-references=superscript $< $@
 
95
        python tools/rst2html.py --link-stylesheet --stylesheet=default.css $< $@
96
96
 
97
97
$(PRETTYDIR)/%.htm: pretty_docs doc/%.txt
98
98
        python tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid doc/$*.txt \
113
113
man1/bzr.1: $(MAN_DEPENDENCIES)
114
114
        python generate_docs.py -o $@ man
115
115
 
116
 
ALL_DOCS = $(htm_files) $(MAN_PAGES) doc/developers/HACKING.htm $(dev_htm_files) doc/developers/performance.png
 
116
ALL_DOCS = $(htm_files) $(MAN_PAGES) doc/developers/HACKING.htm $(dev_htm_files)
117
117
docs: $(ALL_DOCS)
118
118
 
119
119
copy-docs: docs
121
121
                doc/default.css NEWS README \
122
122
                win32_bzr.exe/doc
123
123
        python tools/win32/ostools.py copytodir doc/developers/HACKING.htm \
124
 
                $(dev_htm_files) \
125
124
                win32_bzr.exe/doc/developers
126
125
 
127
126
# clean produced docs
128
127
clean-docs:
129
128
        python tools/win32/ostools.py remove $(ALL_DOCS) \
130
 
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt doc/developers/performance.png
131
 
 
132
 
 
133
 
# build a png of our performance task list
134
 
doc/developers/performance.png: doc/developers/performance.dot
135
 
        @echo Generating $@
136
 
        @dot -Tpng $< -o$@ || echo "Dot not installed; skipping generation of $@"
 
129
        $(HTMLDIR) $(PRETTYDIR) doc/bzr_man.txt
137
130
 
138
131
 
139
132
# make bzr.exe for win32 with py2exe
140
133
exe:
141
134
        @echo *** Make bzr.exe
142
 
        python setup.py build_ext -i -f
143
135
        python setup.py py2exe > py2exe.log
144
136
        python tools/win32/ostools.py copytodir tools/win32/start_bzr.bat win32_bzr.exe
145
137
        python tools/win32/ostools.py copytodir tools/win32/bazaar.url win32_bzr.exe
153
145
# win32 python's distutils-based installer
154
146
# require to have python interpreter installed on win32
155
147
python-installer: docs
156
 
        python24 setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
157
 
        python25 setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
 
148
        python setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
158
149
 
159
150
 
160
151
# clean on win32 all installer-related files and directories
163
154
        python tools/win32/ostools.py remove win32_bzr.exe
164
155
        python tools/win32/ostools.py remove py2exe.log
165
156
        python tools/win32/ostools.py remove doc/*.htm
166
 
        python tools/win32/ostools.py remove doc/developers/*.htm
167
157
        python tools/win32/ostools.py remove doc/bzr_man.txt
168
158
        python tools/win32/ostools.py remove tools/win32/bzr.iss
169
159
        python tools/win32/ostools.py remove bzr-setup*.exe