~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Dmitry Vasiliev
  • Date: 2009-06-01 20:15:36 UTC
  • mto: (4426.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4427.
  • Revision ID: dima@hlabs.spb.ru-20090601201536-wwjyzo3pg3pl1at2
Initial version of Russian user guide

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        doc/index.txt \
96
96
        doc/index.es.txt \
97
97
        doc/index.ru.txt \
 
98
        doc/ru/user-guide/index.txt \
98
99
        doc/ru/mini-tutorial/index.txt \
99
100
        $(wildcard doc/ru/tutorials/*.txt)
100
101
non_txt_files := \
109
110
       $(wildcard doc/es/guia-usuario/images/*.png) \
110
111
       doc/ru/quick-reference/quick-start-summary.svg \
111
112
       doc/ru/quick-reference/quick-start-summary.png \
112
 
       doc/ru/quick-reference/quick-start-summary.pdf
 
113
       doc/ru/quick-reference/quick-start-summary.pdf \
 
114
       $(wildcard doc/ru/user-guide/images/*.png)
113
115
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
114
116
dev_txt_files := $(wildcard $(addsuffix /*.txt, doc/developers))
115
117
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
116
118
 
117
 
doc/en/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
118
 
        $(rst2html) --stylesheet=../../default.css doc/en/user-guide/index.txt $@
 
119
doc/%/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/%/user-guide)) 
 
120
        $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
119
121
 
120
122
# Set the paper size for PDF files.
121
123
# Options:  'a4' (ISO A4 size), 'letter' (US Letter size)
122
124
PAPERSIZE = a4
 
125
# TODO: Add generation for Russian PDF
123
126
PDF_DOCS := doc/en/user-guide/user-guide.$(PAPERSIZE).pdf
124
127
 
125
128
# Copy and modify the RST sources, and convert SVG images to PDF
140
143
doc/developers/%.html: doc/developers/%.txt
141
144
        $(rst2html) --stylesheet=../default.css $< $@
142
145
 
143
 
doc/index.html: doc/index.txt
144
 
        $(rst2html) --stylesheet=default.css $< $@
145
 
 
146
 
doc/index.es.html: doc/index.es.txt
147
 
        $(rst2html) --stylesheet=default.css $< $@
148
 
 
149
 
doc/index.ru.html: doc/index.ru.txt
 
146
doc/index%.html: doc/index%.txt
150
147
        $(rst2html) --stylesheet=default.css $< $@
151
148
 
152
149
%.html: %.txt
202
199
clean-docs:
203
200
        $(PYTHON) tools/win32/ostools.py remove $(ALL_DOCS) \
204
201
            $(HTMLDIR) $(derived_txt_files)
205
 
        rm -f doc/en/user-guide/*.pdf
206
 
        rm -rf doc/en/user-guide/latex_prepared
 
202
        rm -f doc/*/user-guide/*.pdf
 
203
        rm -rf doc/*/user-guide/latex_prepared
207
204
 
208
205
 
209
206
### Windows Support ###