111
112
doc/en/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
112
113
$(rst2html) --stylesheet=../../default.css doc/en/user-guide/index.txt $@
115
# Set the paper size for PDF files.
116
# Options: 'a4' (ISO A4 size), 'letter' (US Letter size)
118
PDF_DOCUMENTS := doc/en/user-guide/user-guide.$(PAPERSIZE).pdf
120
# Copy and modify the RST sources, and convert SVG images to PDF
121
# files for use a images in the LaTeX-generated PDF.
122
# Then generate the PDF output from the modified RST sources.
123
doc/en/user-guide/user-guide.$(PAPERSIZE).pdf: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
124
mkdir -p doc/en/user-guide/latex_prepared
125
$(PYTHON) tools/prepare_for_latex.py \
126
--out-dir=doc/en/user-guide/latex_prepared \
127
--in-dir=doc/en/user-guide
128
cd doc/en/user-guide/latex_prepared && \
129
$(PYTHON) ../../../../tools/rst2pdf.py \
130
--documentoptions=10pt,$(PAPERSIZE)paper \
131
--input-encoding=UTF-8:strict --output-encoding=UTF-8:strict \
132
--strict --title="Bazaar User Guide" \
133
index.txt ../user-guide.$(PAPERSIZE).pdf
114
135
doc/developers/%.html: doc/developers/%.txt
115
136
$(rst2html) --stylesheet=../default.css $< $@
154
175
derived_web_docs = $(htm_files) $(dev_htm_files) doc/developers/performance.png
155
176
WEB_DOCS = $(derived_web_docs) $(non_txt_files)
156
ALL_DOCS = $(derived_web_docs) $(MAN_PAGES)
177
ALL_DOCS = $(derived_web_docs) $(MAN_PAGES) $(PDF_DOCUMENTS)
158
179
# the main target to build all the docs
159
180
docs: $(ALL_DOCS)