1 ## Makefile for the doc subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 2008, 2009, 2010, 2011 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-single.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 stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
261 -(cd ${doxygen_outdir}/latex && $(MAKE) -i pdf;)
262 echo "Generating doxygen pdf file...";
263 if [ -f ${doxygen_pdf} ]; then \
264 mv ${doxygen_pdf} ${api_pdf} ; \
265 echo ":: PDF file is ${api_pdf}"; \
270 $(STAMP) stamp-pdf-doxygen
272 stamp-man-doxygen: ${doxygen_outdir}/man
273 -(srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
274 builddir=`cd ..; ${PWD_COMMAND}`; \
275 ${SHELL} ${doxygen_script} \
276 --host_alias=${host_alias} --mode=man $${srcdir} $${builddir} YES)
277 $(STAMP) stamp-man-doxygen
279 doc-xml-doxygen: stamp-xml-doxygen
280 doc-xml-single-doxygen: stamp-xml-single-doxygen
281 doc-html-doxygen: stamp-html-doxygen
282 doc-latex-doxygen: stamp-latex-doxygen
283 doc-pdf-doxygen: stamp-pdf-doxygen
284 doc-man-doxygen: stamp-man-doxygen
287 # Docbook configuration.
294 docbook_outdir = ${glibcxx_builddir}/doc/docbook
295 xml_dir = ${glibcxx_srcdir}/doc/xml
297 xml_sources_basic = \
298 ${xml_dir}/spine.xml \
299 ${xml_dir}/authors.xml \
303 xml_sources_manual = \
304 ${xml_dir}/manual/abi.xml \
305 ${xml_dir}/manual/algorithms.xml \
306 ${xml_dir}/manual/allocator.xml \
307 ${xml_dir}/manual/auto_ptr.xml \
308 ${xml_dir}/manual/atomics.xml \
309 ${xml_dir}/manual/backwards_compatibility.xml \
310 ${xml_dir}/manual/bitmap_allocator.xml \
311 ${xml_dir}/manual/build_hacking.xml \
312 ${xml_dir}/manual/codecvt.xml \
313 ${xml_dir}/manual/concurrency.xml \
314 ${xml_dir}/manual/concurrency_extensions.xml \
315 ${xml_dir}/manual/configure.xml \
316 ${xml_dir}/manual/containers.xml \
317 ${xml_dir}/manual/ctype.xml \
318 ${xml_dir}/manual/debug_mode.xml \
319 ${xml_dir}/manual/debug.xml \
320 ${xml_dir}/manual/diagnostics.xml \
321 ${xml_dir}/manual/documentation_hacking.xml \
322 ${xml_dir}/manual/evolution.xml \
323 ${xml_dir}/manual/extensions.xml \
324 ${xml_dir}/manual/internals.xml \
325 ${xml_dir}/manual/intro.xml \
326 ${xml_dir}/manual/io.xml \
327 ${xml_dir}/manual/iterators.xml \
328 ${xml_dir}/manual/locale.xml \
329 ${xml_dir}/manual/localization.xml \
330 ${xml_dir}/manual/messages.xml \
331 ${xml_dir}/manual/mt_allocator.xml \
332 ${xml_dir}/manual/numerics.xml \
333 ${xml_dir}/manual/parallel_mode.xml \
334 ${xml_dir}/manual/policy_data_structures.xml \
335 ${xml_dir}/manual/prerequisites.xml \
336 ${xml_dir}/manual/profile_mode.xml \
337 ${xml_dir}/manual/shared_ptr.xml \
338 ${xml_dir}/manual/spine.xml \
339 ${xml_dir}/manual/status_cxx1998.xml \
340 ${xml_dir}/manual/status_cxx200x.xml \
341 ${xml_dir}/manual/status_cxxtr1.xml \
342 ${xml_dir}/manual/status_cxxtr24733.xml \
343 ${xml_dir}/manual/strings.xml \
344 ${xml_dir}/manual/support.xml \
345 ${xml_dir}/manual/test.xml \
346 ${xml_dir}/manual/test_policy_data_structures.xml \
347 ${xml_dir}/manual/using.xml \
348 ${xml_dir}/manual/using_exceptions.xml \
349 ${xml_dir}/manual/utilities.xml \
350 ${xml_dir}/manual/appendix_free.xml \
351 ${xml_dir}/manual/appendix_contributing.xml \
352 ${xml_dir}/manual/appendix_porting.xml
354 xml_sources_extra = \
355 ${xml_dir}/gnu/fdl-1.3.xml \
356 ${xml_dir}/gnu/gpl-3.0.xml
359 ${xml_sources_basic} \
360 ${xml_sources_manual} \
363 image_dir = ${xml_dir}/images
365 ${image_dir}/confdeps.png \
366 ${image_dir}/pbds_balls_and_bins.png \
367 ${image_dir}/pbds_binary_priority_queue_random_int_push_timing_test_local.png \
368 ${image_dir}/pbds_cc_hash_random_int_find_timing_test_local.png \
369 ${image_dir}/pbds_cc_hash_random_int_subscript_timing_test_find_local.png \
370 ${image_dir}/pbds_cc_hash_random_int_subscript_timing_test_insert_local.png \
371 ${image_dir}/pbds_container_tag_hierarchy.png \
372 ${image_dir}/pbds_different_underlying_dss_1.png \
373 ${image_dir}/pbds_different_underlying_dss_2.png \
374 ${image_dir}/pbds_embedded_lists_1.png \
375 ${image_dir}/pbds_embedded_lists_2.png \
376 ${image_dir}/pbds_embedded_lists_3.png \
377 ${image_dir}/pbds_exception_hierarchy.png \
378 ${image_dir}/pbds_gp_hash_random_int_find_timing_test_local.png \
379 ${image_dir}/pbds_gp_hash_random_int_subscript_timing_test_find_local.png \
380 ${image_dir}/pbds_gp_hash_random_int_subscript_timing_test_insert_local.png \
381 ${image_dir}/pbds_hash_policy_cd.png \
382 ${image_dir}/pbds_hash_random_int_erase_mem_usage_test_local.png \
383 ${image_dir}/pbds_hash_ranged_hash_range_hashing_fns.png \
384 ${image_dir}/pbds_hash_range_hashing_seq_diagram2.png \
385 ${image_dir}/pbds_hash_range_hashing_seq_diagram.png \
386 ${image_dir}/pbds_hash_zlob_random_int_find_timing_test_local.png \
387 ${image_dir}/pbds_insert_resize_sequence_diagram1.png \
388 ${image_dir}/pbds_insert_resize_sequence_diagram2.png \
389 ${image_dir}/pbds_insert_resize_sequence_diagram3.png \
390 ${image_dir}/pbds_invalidation_guarantee_erase.png \
391 ${image_dir}/pbds_invalidation_tag_hierarchy.png \
392 ${image_dir}/pbds_list_update.png \
393 ${image_dir}/pbds_multimap_text_find_timing_test_large_s2p_hash_local.png \
394 ${image_dir}/pbds_multimap_text_find_timing_test_large_s2p_tree_local.png \
395 ${image_dir}/pbds_multimap_text_find_timing_test_small_s2p_hash_local.png \
396 ${image_dir}/pbds_multimap_text_find_timing_test_small_s2p_tree_local.png \
397 ${image_dir}/pbds_multimap_text_insert_mem_usage_test_large_s2p_hash_local.png \
398 ${image_dir}/pbds_multimap_text_insert_mem_usage_test_large_s2p_tree_local.png \
399 ${image_dir}/pbds_multimap_text_insert_mem_usage_test_small_s2p_hash_local.png \
400 ${image_dir}/pbds_multimap_text_insert_mem_usage_test_small_s2p_tree_local.png \
401 ${image_dir}/pbds_multimap_text_insert_timing_test_large_s2p_hash_local.png \
402 ${image_dir}/pbds_multimap_text_insert_timing_test_large_s2p_tree_local.png \
403 ${image_dir}/pbds_multimap_text_insert_timing_test_small_s2p_hash_local.png \
404 ${image_dir}/pbds_multimap_text_insert_timing_test_small_s2p_tree_local.png \
405 ${image_dir}/pbds_node_invariants.png \
406 ${image_dir}/pbds_pairing_priority_queue_text_push_pop_timing_test_local.png \
407 ${image_dir}/pbds_pairing_priority_queue_text_push_timing_test_local.png \
408 ${image_dir}/pbds_pat_trie.png \
409 ${image_dir}/pbds_point_iterator_hierarchy.png \
410 ${image_dir}/pbds_point_iterators_range_ops_1.png \
411 ${image_dir}/pbds_point_iterators_range_ops_2.png \
412 ${image_dir}/pbds_priority_queue_different_underlying_dss.png \
413 ${image_dir}/pbds_priority_queue_random_int_push_pop_timing_test_local.png \
414 ${image_dir}/pbds_priority_queue_random_int_push_timing_test_local.png \
415 ${image_dir}/pbds_priority_queue_tag_hierarchy.png \
416 ${image_dir}/pbds_priority_queue_text_join_timing_test_local.png \
417 ${image_dir}/pbds_priority_queue_text_modify_down_timing_test_local.png \
418 ${image_dir}/pbds_priority_queue_text_modify_down_timing_test_pairing_thin_local.png \
419 ${image_dir}/pbds_priority_queue_text_modify_up_timing_test_local.png \
420 ${image_dir}/pbds_priority_queue_text_modify_up_timing_test_pairing_thin_local.png \
421 ${image_dir}/pbds_priority_queue_text_pop_mem_usage_test_local.png \
422 ${image_dir}/pbds_priority_queue_text_push_pop_timing_test_local.png \
423 ${image_dir}/pbds_priority_queue_text_push_timing_test_local.png \
424 ${image_dir}/pbds_rationale_null_node_updator.png \
425 ${image_dir}/pbds_resize_policy_cd.png \
426 ${image_dir}/pbds_restoring_node_invariants.png \
427 ${image_dir}/pbds_simple_list.png \
428 ${image_dir}/pbds_text_find_timing_test_hash_local.png \
429 ${image_dir}/pbds_text_find_timing_test_tree_like_local.png \
430 ${image_dir}/pbds_tree_node_invalidations.png \
431 ${image_dir}/pbds_tree_node_invariants.png \
432 ${image_dir}/pbds_tree_node_updator_policy_cd.png \
433 ${image_dir}/pbds_tree_order_statistics_timing_test_local.png \
434 ${image_dir}/pbds_tree_split_join_timing_test_local.png \
435 ${image_dir}/pbds_tree_text_insert_timing_test_node_tree_local.png \
436 ${image_dir}/pbds_tree_text_insert_timing_test_pat_trie_local.png \
437 ${image_dir}/pbds_tree_text_insert_timing_test_vector_tree_local.png \
438 ${image_dir}/pbds_tree_text_lor_find_timing_test_local.png \
439 ${image_dir}/pbds_trie_node_updator_policy_cd.png \
440 ${image_dir}/pbds_update_seq_diagram.png
442 xml_extradir = ${glibcxx_srcdir}/doc/html/ext
444 ${xml_extradir}/lwg-active.html \
445 ${xml_extradir}/lwg-closed.html \
446 ${xml_extradir}/lwg-defects.html
449 ${xml_dir}/book.txml \
450 ${xml_dir}/chapter.txml \
451 ${xml_dir}/class.txml \
452 ${image_dir}/confdeps.dot \
453 ${image_dir}/confdeps.pdf
456 XSLT_FLAGS = --nonet --xinclude
457 XSLT_PARAM = --param toc.section.depth 4
458 #XSL_STYLE_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl-ns
459 #XSL_STYLE_DIR = /usr/share/sgml/docbook/xsl-ns-stylesheets
460 XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl
461 XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/chunk.xsl
462 XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/xhtml-1_1/docbook.xsl
463 XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub/docbook.xsl
465 ${docbook_outdir}/epub:
466 mkdir -p ${docbook_outdir}/epub
468 ${docbook_outdir}/fo:
469 mkdir -p ${docbook_outdir}/fo
471 ${docbook_outdir}/html:
472 mkdir -p ${docbook_outdir}/html
473 mkdir -p ${docbook_outdir}/html/images
474 mkdir -p ${docbook_outdir}/html/manual/ext
476 ${docbook_outdir}/pdf:
477 mkdir -p ${docbook_outdir}/pdf
479 ${docbook_outdir}/texinfo:
480 mkdir -p ${docbook_outdir}/texinfo
482 ${docbook_outdir}/xml:
483 mkdir -p ${docbook_outdir}/xml
485 # Validate existing XML structure.
487 LINT_FLAGS = --debug --xinclude --noent --noblanks --noout
488 SCHEMA_FLAGS = http://www.docbook.org/xml/5.0/dtd/docbook.dtd
489 #SCHEMA_FLAGS = --nonet /usr/share/xml/docbook5/schema/dtd/5.0/docbook.dtd
490 XMLLINT_VALID_FLAGS = $(LINT_FLAGS) --dtdvalid $(SCHEMA_FLAGS)
491 XMLLINT_FLAGS = --xinclude --nsclean --c14n --noent --noblanks --nocdata
492 doc-xml-validate-docbook: $(xml_sources) $(xml_images)
493 @echo "Generating XML validation log..."
494 $(XMLLINT) $(XMLLINT_VALID_FLAGS) ${top_srcdir}/doc/xml/spine.xml
497 # Some info on canonicalization
498 # http://www.mail-archive.com/help-texinfo@gnu.org/msg00864.html
499 manual_xml = ${docbook_outdir}/xml/libstdc++-manual-single.xml
500 set_xml = ${docbook_outdir}/xml/libstdc++-set-single.xml
501 stamp-xml-single-docbook: $(xml_sources) ${docbook_outdir}/xml
502 @echo "Generating XML single..."
503 $(XMLLINT) $(XMLLINT_FLAGS) \
504 ${top_srcdir}/doc/xml/manual/spine.xml > ${manual_xml};
505 $(XMLLINT) $(XMLLINT_FLAGS) \
506 ${top_srcdir}/doc/xml/spine.xml > ${set_xml};
507 if [ ! -d "${docbook_outdir}/xml/images" ]; then \
508 $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/xml/; \
510 $(STAMP) stamp-xml-single-docbook
512 doc-xml-single-docbook: stamp-xml-single-docbook
515 stamp-html-docbook-images: stamp-html-docbook $(xml_images)
516 $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/html/images
517 $(STAMP) stamp-html-docbook-images
519 stamp-html-docbook-lwg: stamp-html-docbook $(xml_extra)
520 $(INSTALL_DATA) $(xml_extra) ${docbook_outdir}/html/manual/ext
521 $(STAMP) stamp-html-docbook-lwg
523 stamp-html-docbook-data: stamp-html-docbook-images stamp-html-docbook-lwg
524 $(STAMP) stamp-html-docbook-data
526 # HTML, index plus chapters
527 stamp-html-docbook: $(xml_sources) ${docbook_outdir}/html
528 @echo "Generating html files..."
529 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${docbook_outdir}/html/ \
530 $(XSL_HTML_STYLE) ${top_srcdir}/doc/xml/spine.xml
531 $(STAMP) stamp-html-docbook
533 doc-html-docbook: stamp-html-docbook-data
536 manual_html = ${docbook_outdir}/html/libstdc++-manual-single.html
537 stamp-html-single-docbook: $(xml_sources) ${docbook_outdir}/html
538 @echo "Generating html single file..."
539 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${manual_html} \
540 $(XSL_HTML_SINGLE_STYLE) ${top_srcdir}/doc/xml/spine.xml
541 $(STAMP) stamp-html-single-docbook
543 doc-html-single-docbook: stamp-html-single-docbook
546 stamp-fo-docbook: $(xml_sources) ${docbook_outdir}/fo
547 @echo "Generating FO files..."
548 $(XSLTPROC) $(XSLT_FLAGS) -o ${docbook_outdir}/fo/spine.fo \
549 $(XSL_FO_STYLE) ${top_srcdir}/doc/xml/spine.xml
550 $(STAMP) stamp-fo-docbook
552 doc-fo-docbook: stamp-fo-docbook
555 manual_pdf = ${docbook_outdir}/pdf/libstdc++-manual.pdf
556 DBLATEX_FLAGS = --dump --verbose --pdf
557 stamp-pdf-docbook: $(xml_sources) ${docbook_outdir}/pdf
558 @echo "Generating pdf dblatex files..."
559 dblatex $(DBLATEX_FLAGS) \
560 -o ${manual_pdf} ${top_srcdir}/doc/xml/spine.xml
561 $(STAMP) stamp-pdf-docbook
563 doc-pdf-docbook: stamp-pdf-docbook
565 # TEXINFO, via docbook2X
566 # NB: Both experimental and tempermental
567 manual_texi = ${docbook_outdir}/texinfo/libstdc++-manual.texi
568 manual_info = ${docbook_outdir}/texinfo/libstdc++-manual.info
570 --encoding=utf-8//TRANSLIT \
571 --string-param output-file="libstdc++-manual" \
572 --string-param directory-category="GNU C++ Library" \
573 --string-param explicit-node-names=true
575 stamp-texinfo-docbook: stamp-xml-single-docbook ${docbook_outdir}/texinfo
576 @echo "Generating texinfo files..."
577 db2x_docbook2texi $(DB2TEXI_FLAGS) ${set_xml}
578 mv libstdc++-manual.texi ${manual_texi}
579 $(STAMP) stamp-texinfo-docbook
581 stamp-info-docbook: stamp-texinfo-docbook
582 @echo "Generating info files..."
583 $(MAKEINFO) $(MAKEINFOFLAGS) ${manual_texi}
584 $(STAMP) stamp-info-docbook
586 doc-texinfo-docbook: stamp-texinfo-docbook
588 doc-info-docbook: stamp-info-docbook
590 # EPUB, via dbtoepub + ruby
591 manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub
592 stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub
593 @echo "Generating epub files..."
594 ${XSL_STYLE_DIR}/epub/bin/dbtoepub -v -d -o ${manual_epub} ${set_xml}
595 $(STAMP) stamp-epub-docbook
597 doc-epub-docbook: stamp-epub-docbook
600 # Performance doc and graph configuration.
601 # Assumes pychart, beautiful soup installed.
602 # Generates the plots and graphs for performance testing.
603 # XXX this needs to be re-worked to create only the SVG charts
604 doc_performance_script=${top_srcdir}/scripts/make_graphs.py
605 doc-html-performance:
606 -@(chmod + ${doc_performance_script}; \
607 ${doc_performance_script} ${top_srcdir} \
608 ${glibcxx_builddir}/testsuite \
609 ${top_srcdir}/testsuite/data/make_graph_htmls.xml \
610 ${top_srcdir}/testsuite/data/make_graph_test_infos.xml local g++)
613 .PHONY: doc-doxygen-html doc-doxygen-man doc-performance
615 # By adding these files here, automake will remove them for 'make clean'
616 CLEANFILES = *.log stamp*
618 # To remove directories.
620 rm -rf man html pdf fo xml doxygen docbook ./libstdc++-* db2t*