~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Martin Pool
  • Date: 2009-06-19 09:06:56 UTC
  • mfrom: (4463 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090619090656-d5weqeecyscv8kqp
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        $(wildcard doc/es/guia-usario/*.txt) \
94
94
        doc/es/mini-tutorial/index.txt \
95
95
        doc/index.txt \
96
 
        doc/index.es.txt
 
96
        doc/index.es.txt \
 
97
        doc/index.ru.txt \
 
98
        doc/ru/user-guide/index.txt \
 
99
        doc/ru/mini-tutorial/index.txt \
 
100
        $(wildcard doc/ru/tutorials/*.txt)
97
101
non_txt_files := \
98
102
       doc/default.css \
99
103
       doc/en/quick-reference/quick-start-summary.svg \
103
107
       doc/es/referencia-rapida/referencia-rapida.svg \
104
108
       doc/es/referencia-rapida/referencia-rapida.png \
105
109
       doc/es/referencia-rapida/referencia-rapida.pdf \
106
 
       $(wildcard doc/es/guia-usuario/images/*.png)
 
110
       $(wildcard doc/es/guia-usuario/images/*.png) \
 
111
       doc/ru/quick-reference/quick-start-summary.svg \
 
112
       doc/ru/quick-reference/quick-start-summary.png \
 
113
       doc/ru/quick-reference/quick-start-summary.pdf \
 
114
       $(wildcard doc/ru/user-guide/images/*.png)
107
115
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
108
116
 
109
117
# doc/developers/*.txt files that should *not* be individually
120
128
        doc/developers/initial-push-pull.txt \
121
129
        doc/developers/merge-scaling.txt \
122
130
        doc/developers/missing.txt \
123
 
        doc/developers/performance-contributing.txt \
124
131
        doc/developers/performance-roadmap-rationale.txt \
125
132
        doc/developers/performance-use-case-analysis.txt \
126
133
        doc/developers/planned-change-integration.txt \
133
140
dev_txt_files := $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
134
141
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
135
142
 
136
 
doc/en/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
137
 
        $(rst2html) --stylesheet=../../default.css doc/en/user-guide/index.txt $@
 
143
doc/%/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/%/user-guide)) 
 
144
        $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
138
145
 
139
146
# Set the paper size for PDF files.
140
147
# Options:  'a4' (ISO A4 size), 'letter' (US Letter size)
141
148
PAPERSIZE = a4
 
149
# TODO: Add generation for Russian PDF
142
150
PDF_DOCS := doc/en/user-guide/user-guide.$(PAPERSIZE).pdf
143
151
 
144
152
# Copy and modify the RST sources, and convert SVG images to PDF
162
170
doc/index.html: doc/index.txt
163
171
        $(rst2html) --stylesheet=default.css $< $@
164
172
 
 
173
doc/index.%.html: doc/index.%.txt
 
174
        $(rst2html) --stylesheet=default.css $< $@
 
175
 
165
176
%.html: %.txt
166
177
        $(rst2html) --stylesheet=../../default.css $< $@
167
178
 
182
193
        PYTHONPATH=.:$$PYTHONPATH $(PYTHON) tools/generate_docs.py -o $@ man
183
194
 
184
195
# build a png of our performance task list
 
196
 
197
# this is no longer built by default; you can build it if you want to look at it
185
198
doc/developers/performance.png: doc/developers/performance.dot
186
199
        @echo Generating $@
187
200
        @dot -Tpng $< -o$@ || echo "Dot not installed; skipping generation of $@"
188
201
 
189
 
derived_web_docs = $(htm_files) $(dev_htm_files) doc/developers/performance.png
 
202
derived_web_docs = $(htm_files) $(dev_htm_files) 
190
203
WEB_DOCS = $(derived_web_docs) $(non_txt_files)
191
204
ALL_DOCS = $(derived_web_docs) $(MAN_PAGES)
192
205
 
205
218
clean-docs:
206
219
        $(PYTHON) tools/win32/ostools.py remove $(ALL_DOCS) \
207
220
            $(HTMLDIR) $(derived_txt_files)
208
 
        rm -f doc/en/user-guide/*.pdf
209
 
        rm -rf doc/en/user-guide/latex_prepared
 
221
        rm -f doc/*/user-guide/*.pdf
 
222
        rm -rf doc/*/user-guide/latex_prepared
210
223
 
211
224
 
212
225
### Windows Support ###
234
247
py-inst-25: docs
235
248
        python25 setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
236
249
 
237
 
python-installer: py-inst-24 py-inst-25
 
250
py-inst-26: docs
 
251
        python26 setup.py bdist_wininst --install-script="bzr-win32-bdist-postinstall.py" -d .
 
252
 
 
253
python-installer: py-inst-24 py-inst-25 py-inst-26
238
254
 
239
255
 
240
256
copy-docs: docs