1 ## Makefile for the doc subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 2008-2017 Free Software Foundation, Inc.
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
8 ## This file is part of the GNU ISO C++ Library. This library is free
9 ## software; you can redistribute it and/or modify it under the
10 ## terms of the GNU General Public License as published by the
11 ## Free Software Foundation; either version 3, or (at your option)
14 ## This library is distributed in the hope that it will be useful,
15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ## GNU General Public License for more details.
19 ## You should have received a copy of the GNU General Public License along
20 ## with this library; see the file COPYING3. If not see
21 ## <http://www.gnu.org/licenses/>.
23 include $(top_srcdir)/fragment.am
25 # Documentation Overview
27 # There are two main input materials for libstdc++ documentation.
28 # The first is the doxygen markup in libstdc++ sources, which is a
29 # reference to the API. And the second is the manual, via docbook markup in
32 # A third and more obscure option deals with charting performance
33 # tests, and should be considered experimental.
35 # Documentation conditionals for output.
38 STAMP_INSTALL_XML = doc-install-xml
46 STAMP_INSTALL_HTML = doc-install-html
54 STAMP_INSTALL_MAN = doc-install-man
62 STAMP_INSTALL_PDF = doc-install-pdf
70 STAMP_INSTALL_EPUB = doc-install-epub
73 STAMP_INSTALL_EPUB = doc-install-epub
76 # Documentation primary rules.
96 install-xml: $(STAMP_INSTALL_XML)
99 install-html: $(STAMP_INSTALL_HTML)
102 install-man: $(STAMP_INSTALL_MAN)
105 install-pdf: $(STAMP_INSTALL_PDF)
108 install-epub: $(STAMP_INSTALL_EPUB)
120 # Default creation and installation rules.
121 # Point to best sub-rule for the requested documentation target and
122 # create, and then install toplevel directory with standardized names
126 xmldir="$(DESTDIR)@docdir@"
127 stamp-xml: stamp-xml-single-docbook stamp-xml-single-doxygen
132 doc-install-xml: doc-xml
133 test -z ${xmldir} || $(mkinstalldirs) ${xmldir}
134 $(INSTALL_DATA) ${manual_xml} ${xmldir}
135 $(INSTALL_DATA) ${api_xml} ${xmldir}
138 htmldir="$(DESTDIR)@docdir@"
139 stamp-html: stamp-html-docbook-data stamp-html-doxygen
144 doc-install-html: doc-html
145 test -z ${htmldir} || $(mkinstalldirs) ${htmldir}
146 cp -r ${docbook_outdir}/html ${htmldir}/libstdc++-manual.html;
147 cp -r ${doxygen_outdir}/html ${htmldir}/libstdc++-api.html;
150 pdfdir="$(DESTDIR)@docdir@"
151 stamp-pdf: stamp-pdf-docbook stamp-pdf-doxygen
156 doc-install-pdf: doc-pdf
157 test -z ${pdfdir} || $(mkinstalldirs) ${pdfdir}
158 $(INSTALL_DATA) ${docbook_outdir}/pdf/libstdc++-manual.pdf ${pdfdir}
159 $(INSTALL_DATA) ${doxygen_outdir}/pdf/libstdc++-api.pdf ${pdfdir}
162 mandir="$(DESTDIR)@mandir@"
163 stamp-man: stamp-man-doxygen
168 doc-install-man: doc-man
169 test -z ${mandir} || $(mkinstalldirs) ${mandir}
170 cp -r ${doxygen_outdir}/man/man3 ${mandir}
173 infodir="$(DESTDIR)@infodir@"
174 stamp-texinfo: stamp-texinfo-docbook
175 $(STAMP) stamp-texinfo
177 stamp-info: stamp-info-docbook
180 doc-texinfo: stamp-texinfo
184 doc-install-texinfo: doc-texinfo
185 test -z ${infodir} || $(mkinstalldirs) ${infodir}
186 $(INSTALL_DATA) ${manual_texi} ${infodir}
188 doc-install-info: doc-info
189 test -z ${infodir} || $(mkinstalldirs) ${infodir}
190 $(INSTALL_DATA) ${manual_info} ${infodir}
193 # Assumes ruby installed
194 epubdir="$(DESTDIR)@docdir@"
195 stamp-epub: stamp-epub-docbook
200 doc-install-epub: doc-epub
201 test -z ${epubdir} || $(mkinstalldirs) ${epubdir}
202 $(INSTALL_DATA) ${manual_epub} ${epubdir}
205 # Doxygen configuration
206 # Assumes doxygen, graphviz (with dot), pdflatex installed
207 doxygen_script=${top_srcdir}/scripts/run_doxygen
208 doxygen_outdir = ${glibcxx_builddir}/doc/doxygen
209 api_xml = ${doxygen_outdir}/xml/libstdc++-api.xml
210 doxygen_pdf = ${doxygen_outdir}/latex/refman.pdf
211 api_pdf = ${doxygen_outdir}/pdf/libstdc++-api.pdf
213 ${doxygen_outdir}/xml:
214 mkdir -p ${doxygen_outdir}/xml
216 ${doxygen_outdir}/html:
217 mkdir -p ${doxygen_outdir}/html
219 ${doxygen_outdir}/latex:
220 mkdir -p ${doxygen_outdir}/latex
222 ${doxygen_outdir}/pdf:
223 mkdir -p ${doxygen_outdir}/pdf
225 ${doxygen_outdir}/man:
226 mkdir -p ${doxygen_outdir}/man
228 stamp-xml-doxygen: ${doxygen_outdir}/xml
229 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
230 builddir=`cd ..; ${PWD_COMMAND}`; \
231 ${SHELL} ${doxygen_script} \
232 --host_alias=${host_alias} --mode=xml $${srcdir} $${builddir} NO)
233 $(STAMP) stamp-xml-doxygen
235 stamp-xml-single-doxygen: stamp-xml-doxygen
236 @echo "Generating doxygen xml single file..."
237 $(XSLTPROC) ${doxygen_outdir}/xml/combine.xslt \
238 ${doxygen_outdir}/xml/index.xml > ${api_xml};
239 $(STAMP) stamp-xml-single-doxygen
241 stamp-html-doxygen: ${doxygen_outdir}/html
242 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
243 builddir=`cd ..; ${PWD_COMMAND}`; \
244 ${SHELL} ${doxygen_script} \
245 --host_alias=${host_alias} --mode=html $${srcdir} $${builddir} YES)
246 $(STAMP) stamp-html-doxygen
248 stamp-latex-doxygen: ${doxygen_outdir}/latex
249 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
250 builddir=`cd ..; ${PWD_COMMAND}`; \
251 ${SHELL} ${doxygen_script} \
252 --host_alias=${host_alias} --mode=latex $${srcdir} $${builddir} NO)
253 $(STAMP) stamp-latex-doxygen
255 # Chance of loooooonnggg creation time on this rule. Iff this fails,
256 # look at refman.log and see if TeX's memory is exhausted. Symptoms
257 # include asking a wizard to enlarge capacity. If this is the case,
258 # find texmf.cnf and add a zero for pool_size, string_vacancies,
259 # max_strings, and pool_free values.
260 # Errors like "File `foo.sty' not found" mean a TeX package is missing.
261 stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
262 -(cd ${doxygen_outdir}/latex && $(MAKE) -i pdf;)
263 echo "Generating doxygen pdf file...";
264 if [ -f ${doxygen_pdf} ]; then \
265 mv ${doxygen_pdf} ${api_pdf} ; \
266 echo ":: PDF file is ${api_pdf}"; \
269 grep -F 'LaTeX Error' ${doxygen_outdir}/latex/refman.log; \
272 $(STAMP) stamp-pdf-doxygen
274 stamp-man-doxygen: ${doxygen_outdir}/man
275 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
276 builddir=`cd ..; ${PWD_COMMAND}`; \
277 ${SHELL} ${doxygen_script} \
278 --host_alias=${host_alias} --mode=man $${srcdir} $${builddir} YES)
279 $(STAMP) stamp-man-doxygen
281 doc-xml-doxygen: stamp-xml-doxygen
282 doc-xml-single-doxygen: stamp-xml-single-doxygen
283 doc-html-doxygen: stamp-html-doxygen
284 doc-latex-doxygen: stamp-latex-doxygen
285 doc-pdf-doxygen: stamp-pdf-doxygen
286 doc-man-doxygen: stamp-man-doxygen
289 # Docbook configuration.
296 docbook_outdir = ${glibcxx_builddir}/doc/docbook
297 xml_dir = ${glibcxx_srcdir}/doc/xml
299 xml_sources_basic = \
300 ${xml_dir}/spine.xml \
301 ${xml_dir}/authors.xml \
305 xml_sources_manual = \
306 ${xml_dir}/manual/abi.xml \
307 ${xml_dir}/manual/algorithms.xml \
308 ${xml_dir}/manual/allocator.xml \
309 ${xml_dir}/manual/auto_ptr.xml \
310 ${xml_dir}/manual/atomics.xml \
311 ${xml_dir}/manual/backwards_compatibility.xml \
312 ${xml_dir}/manual/bitmap_allocator.xml \
313 ${xml_dir}/manual/build_hacking.xml \
314 ${xml_dir}/manual/codecvt.xml \
315 ${xml_dir}/manual/concurrency.xml \
316 ${xml_dir}/manual/concurrency_extensions.xml \
317 ${xml_dir}/manual/configure.xml \
318 ${xml_dir}/manual/containers.xml \
319 ${xml_dir}/manual/ctype.xml \
320 ${xml_dir}/manual/debug_mode.xml \
321 ${xml_dir}/manual/debug.xml \
322 ${xml_dir}/manual/diagnostics.xml \
323 ${xml_dir}/manual/documentation_hacking.xml \
324 ${xml_dir}/manual/evolution.xml \
325 ${xml_dir}/manual/extensions.xml \
326 ${xml_dir}/manual/internals.xml \
327 ${xml_dir}/manual/intro.xml \
328 ${xml_dir}/manual/io.xml \
329 ${xml_dir}/manual/iterators.xml \
330 ${xml_dir}/manual/locale.xml \
331 ${xml_dir}/manual/localization.xml \
332 ${xml_dir}/manual/messages.xml \
333 ${xml_dir}/manual/mt_allocator.xml \
334 ${xml_dir}/manual/numerics.xml \
335 ${xml_dir}/manual/parallel_mode.xml \
336 ${xml_dir}/manual/policy_data_structures.xml \
337 ${xml_dir}/manual/policy_data_structures_biblio.xml \
338 ${xml_dir}/manual/prerequisites.xml \
339 ${xml_dir}/manual/profile_mode.xml \
340 ${xml_dir}/manual/shared_ptr.xml \
341 ${xml_dir}/manual/spine.xml \
342 ${xml_dir}/manual/status_cxx1998.xml \
343 ${xml_dir}/manual/status_cxx2011.xml \
344 ${xml_dir}/manual/status_cxx2014.xml \
345 ${xml_dir}/manual/status_cxxtr1.xml \
346 ${xml_dir}/manual/status_cxxtr24733.xml \
347 ${xml_dir}/manual/strings.xml \
348 ${xml_dir}/manual/support.xml \
349 ${xml_dir}/manual/test.xml \
350 ${xml_dir}/manual/test_policy_data_structures.xml \
351 ${xml_dir}/manual/using.xml \
352 ${xml_dir}/manual/using_exceptions.xml \
353 ${xml_dir}/manual/utilities.xml \
354 ${xml_dir}/manual/appendix_free.xml \
355 ${xml_dir}/manual/appendix_contributing.xml \
356 ${xml_dir}/manual/appendix_porting.xml
358 xml_sources_extra = \
359 ${xml_dir}/gnu/fdl-1.3.xml \
360 ${xml_dir}/gnu/gpl-3.0.xml
363 ${xml_sources_basic} \
364 ${xml_sources_manual} \
367 xml_image_dir = ${xml_dir}/images
369 ${xml_image_dir}/confdeps.png \
370 ${xml_image_dir}/pbds_balls_and_bins.png \
371 ${xml_image_dir}/pbds_container_tag_hierarchy.png \
372 ${xml_image_dir}/pbds_different_underlying_dss_1.png \
373 ${xml_image_dir}/pbds_different_underlying_dss_2.png \
374 ${xml_image_dir}/pbds_embedded_lists_1.png \
375 ${xml_image_dir}/pbds_embedded_lists_2.png \
376 ${xml_image_dir}/pbds_embedded_lists_3.png \
377 ${xml_image_dir}/pbds_exception_hierarchy.png \
378 ${xml_image_dir}/pbds_hash_policy_cd.png \
379 ${xml_image_dir}/pbds_hash_ranged_hash_range_hashing_fns.png \
380 ${xml_image_dir}/pbds_hash_range_hashing_seq_diagram2.png \
381 ${xml_image_dir}/pbds_hash_range_hashing_seq_diagram.png \
382 ${xml_image_dir}/pbds_insert_resize_sequence_diagram1.png \
383 ${xml_image_dir}/pbds_insert_resize_sequence_diagram2.png \
384 ${xml_image_dir}/pbds_insert_resize_sequence_diagram3.png \
385 ${xml_image_dir}/pbds_invalidation_guarantee_erase.png \
386 ${xml_image_dir}/pbds_invalidation_tag_hierarchy.png \
387 ${xml_image_dir}/pbds_list_update.png \
388 ${xml_image_dir}/pbds_node_invariants.png \
389 ${xml_image_dir}/pbds_pat_trie.png \
390 ${xml_image_dir}/pbds_point_iterator_hierarchy.png \
391 ${xml_image_dir}/pbds_point_iterators_range_ops_1.png \
392 ${xml_image_dir}/pbds_point_iterators_range_ops_2.png \
393 ${xml_image_dir}/pbds_priority_queue_different_underlying_dss.png \
394 ${xml_image_dir}/pbds_priority_queue_tag_hierarchy.png \
395 ${xml_image_dir}/pbds_rationale_null_node_updator.png \
396 ${xml_image_dir}/pbds_resize_policy_cd.png \
397 ${xml_image_dir}/pbds_restoring_node_invariants.png \
398 ${xml_image_dir}/pbds_simple_list.png \
399 ${xml_image_dir}/pbds_tree_node_invalidations.png \
400 ${xml_image_dir}/pbds_tree_node_invariants.png \
401 ${xml_image_dir}/pbds_tree_node_updator_policy_cd.png \
402 ${xml_image_dir}/pbds_trie_node_updator_policy_cd.png \
403 ${xml_image_dir}/pbds_update_seq_diagram.png
405 xml_image_generated = \
406 ${xml_image_dir}/pbds_binary_priority_queue_int_push_pop.png \
407 ${xml_image_dir}/pbds_binary_priority_queue_int_push.png \
408 ${xml_image_dir}/pbds_ccgp_hash_int_subscript_insert.png \
409 ${xml_image_dir}/pbds_cc_hash_int_find.png \
410 ${xml_image_dir}/pbds_cc_hash_int_subscript_find.png \
411 ${xml_image_dir}/pbds_cc_hash_int_subscript_insert.png \
412 ${xml_image_dir}/pbds_gp_hash_int_find.png \
413 ${xml_image_dir}/pbds_gp_hash_int_subscript_find.png \
414 ${xml_image_dir}/pbds_gp_hash_int_subscript_insert.png \
415 ${xml_image_dir}/pbds_hash_int_erase_mem.png \
416 ${xml_image_dir}/pbds_hash_text_find.png \
417 ${xml_image_dir}/pbds_hash_zlob_int_find.png \
418 ${xml_image_dir}/pbds_multimap_text_find_large_s2p_hash.png \
419 ${xml_image_dir}/pbds_multimap_text_find_large_s2p_tree.png \
420 ${xml_image_dir}/pbds_multimap_text_find_small_s2p_hash.png \
421 ${xml_image_dir}/pbds_multimap_text_find_small_s2p_tree.png \
422 ${xml_image_dir}/pbds_multimap_text_insert_large_s2p_hash.png \
423 ${xml_image_dir}/pbds_multimap_text_insert_large_s2p_tree.png \
424 ${xml_image_dir}/pbds_multimap_text_insert_mem_large_s2p_hash.png \
425 ${xml_image_dir}/pbds_multimap_text_insert_mem_large_s2p_tree.png \
426 ${xml_image_dir}/pbds_multimap_text_insert_mem_small_s2p_hash.png \
427 ${xml_image_dir}/pbds_multimap_text_insert_mem_small_s2p_tree.png \
428 ${xml_image_dir}/pbds_multimap_text_insert_small_s2p_hash.png \
429 ${xml_image_dir}/pbds_multimap_text_insert_small_s2p_tree.png \
430 ${xml_image_dir}/pbds_pairing_priority_queue_text_modify_down_thin.png \
431 ${xml_image_dir}/pbds_pairing_priority_queue_text_modify_up_thin.png \
432 ${xml_image_dir}/pbds_pairing_priority_queue_text_push_pop.png \
433 ${xml_image_dir}/pbds_pairing_priority_queue_text_push.png \
434 ${xml_image_dir}/pbds_priority_queue_int_push_pop.png \
435 ${xml_image_dir}/pbds_priority_queue_int_push.png \
436 ${xml_image_dir}/pbds_priority_queue_text_join.png \
437 ${xml_image_dir}/pbds_priority_queue_text_modify_down.png \
438 ${xml_image_dir}/pbds_priority_queue_text_modify_up.png \
439 ${xml_image_dir}/pbds_priority_queue_text_pop_mem.png \
440 ${xml_image_dir}/pbds_priority_queue_text_push_pop.png \
441 ${xml_image_dir}/pbds_priority_queue_text_push.png \
442 ${xml_image_dir}/pbds_tree_int_find.png \
443 ${xml_image_dir}/pbds_tree_order_statistics.png \
444 ${xml_image_dir}/pbds_tree_split_join.png \
445 ${xml_image_dir}/pbds_tree_text_find.png \
446 ${xml_image_dir}/pbds_tree_text_insert_node.png \
447 ${xml_image_dir}/pbds_tree_text_insert_trie.png \
448 ${xml_image_dir}/pbds_tree_text_insert_vector.png \
449 ${xml_image_dir}/pbds_tree_text_lor_find.png
451 xml_images = ${xml_image_basic} ${xml_image_generated}
453 xml_extradir = ${glibcxx_srcdir}/doc/html/ext
455 ${xml_extradir}/lwg-active.html \
456 ${xml_extradir}/lwg-closed.html \
457 ${xml_extradir}/lwg-defects.html
460 ${xml_dir}/book.txml \
461 ${xml_dir}/chapter.txml \
462 ${xml_dir}/class.txml \
463 ${xml_image_dir}/confdeps.dot \
464 ${xml_image_dir}/confdeps.pdf
467 XSLT_FLAGS = --nonet --xinclude
468 XSLT_PARAM = --param toc.section.depth 4 --param generate.consistent.ids 1
469 #XSL_STYLE_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl-ns
470 #XSL_STYLE_DIR = /usr/share/sgml/docbook/xsl-ns-stylesheets
471 XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl
472 XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml/chunk.xsl
473 XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/html/docbook.xsl
474 XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub3/chunk.xsl
475 XSL_LOCAL_STYLE = ${glibcxx_builddir}/doc/xsl/customization.xsl
477 ${docbook_outdir}/epub:
478 mkdir -p ${docbook_outdir}/epub
479 mkdir -p ${docbook_outdir}/epub/OEBPS/images
481 ${docbook_outdir}/fo:
482 mkdir -p ${docbook_outdir}/fo
484 ${docbook_outdir}/html:
485 mkdir -p ${docbook_outdir}/html
486 mkdir -p ${docbook_outdir}/html/ext
487 mkdir -p ${docbook_outdir}/html/images
488 mkdir -p ${docbook_outdir}/html/manual
490 ${docbook_outdir}/pdf:
491 mkdir -p ${docbook_outdir}/pdf
493 ${docbook_outdir}/latex:
494 mkdir -p ${docbook_outdir}/latex
496 ${docbook_outdir}/texinfo:
497 mkdir -p ${docbook_outdir}/texinfo
499 ${docbook_outdir}/xml:
500 mkdir -p ${docbook_outdir}/xml
504 # Some info on canonicalization
505 # http://www.mail-archive.com/help-texinfo@gnu.org/msg00864.html
506 manual_xml = ${docbook_outdir}/xml/libstdc++-manual.xml
507 set_xml = ${docbook_outdir}/xml/libstdc++-set.xml
508 stamp-xml-single-docbook: $(xml_sources) ${docbook_outdir}/xml
509 @echo "Generating XML single..."
510 $(XMLLINT) $(XMLLINT_FLAGS) \
511 ${top_srcdir}/doc/xml/manual/spine.xml > ${manual_xml};
512 $(XMLLINT) $(XMLLINT_FLAGS) \
513 ${top_srcdir}/doc/xml/spine.xml > ${set_xml};
514 $(STAMP) stamp-xml-single-docbook
516 doc-xml-single-docbook: stamp-xml-single-docbook
518 # Validate existing XML structure.
520 LINT_FLAGS = --debug --xinclude --noent --noblanks --noout
521 SCHEMA_FLAGS = --dtdvalid http://www.docbook.org/xml/5.0/dtd/docbook.dtd
522 SCHEMA_RNG_FLAGS = --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng
523 #SCHEMA_FLAGS = --nonet --dtdvalid /usr/share/xxx/dtd/5.0/docbook.dtd
524 XMLLINT_VALID_FLAGS = $(LINT_FLAGS) $(SCHEMA_FLAGS)
525 XMLLINT_FLAGS = --xinclude --nsclean --c14n --noent --noblanks --nocdata
526 doc-xml-validate-docbook: doc-xml-validate-dtd-db
528 doc-xml-validate-dtd-db: $(xml_sources) $(xml_images)
529 @echo "Generating XML validation log..."
530 $(XMLLINT) $(XMLLINT_VALID_FLAGS) ${top_srcdir}/doc/xml/spine.xml
532 doc-xml-validate-rng-db: $(xml_sources) $(xml_images) doc-xml-single-docbook
533 @echo "Generating XML RelaxNG validation log..."
534 $(XMLLINT) $(LINT_FLAGS) $(SCHEMA_RNG_FLAGS) ${set_xml}
537 stamp-html-docbook-images: stamp-html-docbook $(xml_images)
538 $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/html/images
539 $(STAMP) stamp-html-docbook-images
541 stamp-html-docbook-lwg: stamp-html-docbook $(xml_extra)
542 $(INSTALL_DATA) $(xml_extra) ${docbook_outdir}/html/ext
543 $(STAMP) stamp-html-docbook-lwg
545 stamp-html-docbook-data: stamp-html-docbook-images stamp-html-docbook-lwg
546 $(STAMP) stamp-html-docbook-data
548 # HTML, "chunked" into index plus chapters as separate pages
549 stamp-html-docbook: $(xml_sources) ${docbook_outdir}/html
550 @echo "Generating html files..."
551 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${docbook_outdir}/html/ \
552 --stringparam chunker.output.encoding UTF-8 \
554 ${top_srcdir}/doc/xml/spine.xml
555 $(STAMP) stamp-html-docbook
557 doc-html-docbook: stamp-html-docbook-data
560 # NB: Have to generate customization XSL for UTF-8 output.
561 manual_html = ${docbook_outdir}/html/libstdc++-manual-single.html
562 stamp-html-single-docbook: $(xml_sources) ${docbook_outdir}/html
563 @echo "Generating html single file..."
564 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${manual_html} \
566 ${top_srcdir}/doc/xml/spine.xml
567 $(STAMP) stamp-html-single-docbook
569 doc-html-single-docbook: stamp-html-single-docbook
572 stamp-fo-docbook: $(xml_sources) ${docbook_outdir}/fo
573 @echo "Generating FO files..."
574 $(XSLTPROC) $(XSLT_FLAGS) -o ${docbook_outdir}/fo/spine.fo \
575 $(XSL_FO_STYLE) ${top_srcdir}/doc/xml/spine.xml
576 $(STAMP) stamp-fo-docbook
578 doc-fo-docbook: stamp-fo-docbook
581 manual_pdf = ${docbook_outdir}/pdf/libstdc++-manual.pdf
582 DBLATEX_FLAGS = --verbose --pdf --dump --debug --tmpdir=${docbook_outdir}/latex
584 doc-pdf-docbook-dirs: ${docbook_outdir}/pdf ${docbook_outdir}/latex
586 doc-pdf-docbook-pre: $(xml_sources) doc-pdf-docbook-dirs
588 stamp-pdf-docbook: doc-pdf-docbook-pre doc-xml-single-docbook
589 @echo "Generating pdf dblatex files..."
590 dblatex $(DBLATEX_FLAGS) -o ${manual_pdf} \
591 ${top_srcdir}/doc/xml/spine.xml
592 $(STAMP) stamp-pdf-docbook
594 doc-pdf-docbook: stamp-pdf-docbook
596 # TEXINFO, via docbook2X
597 # NB: Both experimental and tempermental
598 manual_texi = ${docbook_outdir}/texinfo/libstdc++-manual.texi
599 manual_info = ${docbook_outdir}/texinfo/libstdc++-manual.info
601 --encoding=utf-8//TRANSLIT \
602 --string-param output-file="libstdc++-manual" \
603 --string-param directory-category="GNU C++ Library" \
604 --string-param explicit-node-names=true
606 stamp-texinfo-docbook: stamp-xml-single-docbook ${docbook_outdir}/texinfo
607 @echo "Generating texinfo files..."
608 db2x_docbook2texi $(DB2TEXI_FLAGS) ${set_xml}
609 mv libstdc++-manual.texi ${manual_texi}
610 $(STAMP) stamp-texinfo-docbook
612 stamp-info-docbook: stamp-texinfo-docbook
613 @echo "Generating info files..."
614 $(MAKEINFO) $(MAKEINFOFLAGS) ${manual_texi}
615 $(STAMP) stamp-info-docbook
617 doc-texinfo-docbook: stamp-texinfo-docbook
619 doc-info-docbook: stamp-info-docbook
622 # http://sourceforge.net/projects/docbook/files/epub3/
623 # Can verify document with epubcheck
624 manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub
625 stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub
626 @echo "Generating epub files..."
627 if [ ! -d "${docbook_outdir}/images" ]; then \
628 $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/; \
630 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) \
631 --stringparam base.dir "${docbook_outdir}/epub/OEBPS/" \
632 $(XSL_EPUB_STYLE) ${top_srcdir}/doc/xml/spine.xml
633 $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/epub/OEBPS/images
634 zip -X0 ${manual_epub} ${docbook_outdir}/epub/mimetype
635 zip -r -X9 ${manual_epub} ${docbook_outdir}/epub/META-INF ${docbook_outdir}/epub/OEBPS
636 $(STAMP) stamp-epub-docbook
638 doc-epub-docbook: stamp-epub-docbook
640 # Performance doc and graph configuration.
641 # Assumes pychart, beautiful soup installed.
642 # Generates the plots/graph imagery for performance testing.
643 doc_performance_script=${top_srcdir}/scripts/make_graph.py
644 doc-svg-performance: ${docbook_outdir}/xml
645 -@(chmod + ${doc_performance_script}; \
646 ${doc_performance_script} \
647 ${top_srcdir}/testsuite/data/make_graph_test_infos.xml \
648 ${glibcxx_builddir}/testsuite \
649 ${glibcxx_builddir}/doc/docbook/xml/images)
651 .PHONY: doc-doxygen-html doc-doxygen-man doc-performance
653 # By adding these files here, automake will remove them for 'make clean'
654 CLEANFILES = *.log stamp*
656 # To remove directories.
658 rm -rf man html pdf fo xml doxygen docbook ./libstdc++-* db2t*