~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Ian Clatworthy
  • Date: 2009-09-09 12:57:43 UTC
  • mto: (4634.37.2 prepare-2.0)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: ian.clatworthy@canonical.com-20090909125743-33t6yu7m1yl4oobn
Get plain-style documentation generation working again

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
derived_txt_files := \
197
197
        doc/en/user-reference/bzr_man.txt \
198
198
        doc/en/release-notes/NEWS.txt
199
 
txt_files := \
 
199
txt_all := \
200
200
        doc/en/tutorials/tutorial.txt \
201
201
        doc/en/tutorials/using_bazaar_with_launchpad.txt \
202
202
        doc/en/tutorials/centralized_workflow.txt \
 
203
        $(wildcard doc/es/tutorials/*.txt) \
203
204
        $(wildcard doc/ru/tutorials/*.txt) \
204
205
        $(wildcard doc/*/mini-tutorial/index.txt) \
205
 
        $(wildcard doc/*/user-guide/index.txt) \
 
206
        $(wildcard doc/*/user-guide/index-plain.txt) \
 
207
        $(wildcard doc/es/guia-usario/*.txt) \
206
208
        $(derived_txt_files) \
207
 
        doc/en/developer-guide/HACKING.txt \
208
209
        doc/en/upgrade-guide/index.txt \
209
 
        $(wildcard doc/es/guia-usario/*.txt) \
210
 
        doc/es/mini-tutorial/index.txt \
211
210
        doc/index.txt \
212
211
        $(wildcard doc/index.*.txt)
 
212
txt_nohtml := \
 
213
        doc/en/user-guide/index.txt \
 
214
        doc/es/user-guide/index.txt \
 
215
        doc/ru/user-guide/index.txt
 
216
txt_files := $(filter-out $(txt_nohtml), $(txt_all))
 
217
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
 
218
 
213
219
non_txt_files := \
214
220
       doc/default.css \
215
221
       $(wildcard doc/*/bzr-en-quick-reference.svg) \
222
228
       $(wildcard doc/*/bzr-ru-quick-reference.png) \
223
229
       $(wildcard doc/*/bzr-ru-quick-reference.pdf) \
224
230
       $(wildcard doc/*/user-guide/images/*.png)
225
 
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
226
231
 
227
232
# doc/developers/*.txt files that should *not* be individually
228
233
# converted to HTML
234
239
        doc/developers/diff.txt \
235
240
        doc/developers/directory-fingerprints.txt \
236
241
        doc/developers/gc.txt \
 
242
        doc/developers/implementation-notes.txt \
237
243
        doc/developers/incremental-push-pull.txt \
 
244
        doc/developers/index.txt \
238
245
        doc/developers/initial-push-pull.txt \
239
246
        doc/developers/merge-scaling.txt \
 
247
        doc/developers/miscellaneous-notes.txt \
240
248
        doc/developers/missing.txt \
241
249
        doc/developers/performance-roadmap-rationale.txt \
242
250
        doc/developers/performance-use-case-analysis.txt \
243
251
        doc/developers/planned-change-integration.txt \
244
252
        doc/developers/planned-performance-changes.txt \
 
253
        doc/developers/plans.txt \
 
254
        doc/developers/process.txt \
245
255
        doc/developers/revert.txt \
 
256
        doc/developers/specifications.txt \
246
257
        doc/developers/status.txt \
247
258
        doc/developers/uncommit.txt
248
259
 
250
261
dev_txt_files := $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
251
262
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
252
263
 
253
 
doc/%/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/%/user-guide)) 
254
 
        $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
 
264
doc/en/user-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
 
265
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
255
266
 
 
267
#doc/es/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/es/user-guide)) 
 
268
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
 
269
#
 
270
#doc/ru/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/ru/user-guide)) 
 
271
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
 
272
#
256
273
doc/developers/%.html: doc/developers/%.txt
257
274
        $(rst2html) --stylesheet=../default.css $< $@
258
275