]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/doc/Makefile.in
libstdc++: Fix and simplify freestanding configuration [PR103866]
[thirdparty/gcc.git] / libstdc++-v3 / doc / Makefile.in
CommitLineData
22e05272 1# Makefile.in generated by automake 1.15.1 from Makefile.am.
4312e020
BK
2# @configure_input@
3
22e05272
JM
4# Copyright (C) 1994-2017 Free Software Foundation, Inc.
5
4312e020
BK
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
22e05272
JM
17am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27}
28am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
6ef93676
MH
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
22e05272
JM
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
6ef93676 67 esac; \
22e05272
JM
68 done; \
69 test $$has_opt = yes
70am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4312e020 72pkgdatadir = $(datadir)/@PACKAGE@
4312e020 73pkgincludedir = $(includedir)/@PACKAGE@
5213506e
RW
74pkglibdir = $(libdir)/@PACKAGE@
75pkglibexecdir = $(libexecdir)/@PACKAGE@
4312e020
BK
76am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77install_sh_DATA = $(install_sh) -c -m 644
78install_sh_PROGRAM = $(install_sh) -c
79install_sh_SCRIPT = $(install_sh) -c
80INSTALL_HEADER = $(INSTALL_DATA)
81transform = $(program_transform_name)
82NORMAL_INSTALL = :
83PRE_INSTALL = :
84POST_INSTALL = :
85NORMAL_UNINSTALL = :
86PRE_UNINSTALL = :
87POST_UNINSTALL = :
88build_triplet = @build@
89host_triplet = @host@
90target_triplet = @target@
4312e020
BK
91subdir = doc
92ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
b25e6b79
BK
93am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \
94 $(top_srcdir)/../config/enable.m4 \
4312e020 95 $(top_srcdir)/../config/futex.m4 \
1ec62aa9 96 $(top_srcdir)/../config/hwcaps.m4 \
4312e020
BK
97 $(top_srcdir)/../config/iconv.m4 \
98 $(top_srcdir)/../config/lead-dot.m4 \
99 $(top_srcdir)/../config/lib-ld.m4 \
100 $(top_srcdir)/../config/lib-link.m4 \
101 $(top_srcdir)/../config/lib-prefix.m4 \
7de6ba7a 102 $(top_srcdir)/../config/lthostflags.m4 \
4312e020
BK
103 $(top_srcdir)/../config/multi.m4 \
104 $(top_srcdir)/../config/no-executables.m4 \
ef5f59f6 105 $(top_srcdir)/../config/override.m4 \
ed0840ba 106 $(top_srcdir)/../config/stdint.m4 \
e8e66971 107 $(top_srcdir)/../config/toolexeclibdir.m4 \
4312e020 108 $(top_srcdir)/../config/unwind_ipinfo.m4 \
eab89c86
PC
109 $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
110 $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
111 $(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/crossconfig.m4 \
112 $(top_srcdir)/linkage.m4 $(top_srcdir)/acinclude.m4 \
113 $(top_srcdir)/../config/gc++filt.m4 \
1183dc2c 114 $(top_srcdir)/../config/tls.m4 $(top_srcdir)/../config/gthr.m4 \
36101de9 115 $(top_srcdir)/../config/cet.m4 $(top_srcdir)/configure.ac
4312e020
BK
116am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
117 $(ACLOCAL_M4)
22e05272 118DIST_COMMON = $(srcdir)/Makefile.am
4312e020
BK
119CONFIG_HEADER = $(top_builddir)/config.h
120CONFIG_CLEAN_FILES =
5213506e 121CONFIG_CLEAN_VPATH_FILES =
22e05272
JM
122AM_V_P = $(am__v_P_@AM_V@)
123am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
124am__v_P_0 = false
125am__v_P_1 = :
126AM_V_GEN = $(am__v_GEN_@AM_V@)
127am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
128am__v_GEN_0 = @echo " GEN " $@;
129am__v_GEN_1 =
130AM_V_at = $(am__v_at_@AM_V@)
131am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
132am__v_at_0 = @
133am__v_at_1 =
4312e020
BK
134depcomp =
135am__depfiles_maybe =
136SOURCES =
6ef93676
MH
137am__can_run_installinfo = \
138 case $$AM_UPDATE_INFO_DIR in \
139 n|no|NO) false;; \
140 *) (install-info --version) >/dev/null 2>&1;; \
141 esac
22e05272 142am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
4312e020
BK
143ABI_TWEAKS_SRCDIR = @ABI_TWEAKS_SRCDIR@
144ACLOCAL = @ACLOCAL@
145ALLOCATOR_H = @ALLOCATOR_H@
146ALLOCATOR_NAME = @ALLOCATOR_NAME@
147AMTAR = @AMTAR@
22e05272 148AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
4312e020
BK
149AR = @AR@
150AS = @AS@
151ATOMICITY_SRCDIR = @ATOMICITY_SRCDIR@
152ATOMIC_FLAGS = @ATOMIC_FLAGS@
153ATOMIC_WORD_SRCDIR = @ATOMIC_WORD_SRCDIR@
154AUTOCONF = @AUTOCONF@
155AUTOHEADER = @AUTOHEADER@
156AUTOMAKE = @AUTOMAKE@
157AWK = @AWK@
158BASIC_FILE_CC = @BASIC_FILE_CC@
159BASIC_FILE_H = @BASIC_FILE_H@
160CC = @CC@
161CCODECVT_CC = @CCODECVT_CC@
162CCOLLATE_CC = @CCOLLATE_CC@
163CCTYPE_CC = @CCTYPE_CC@
164CFLAGS = @CFLAGS@
165CLOCALE_CC = @CLOCALE_CC@
166CLOCALE_H = @CLOCALE_H@
167CLOCALE_INTERNAL_H = @CLOCALE_INTERNAL_H@
168CMESSAGES_CC = @CMESSAGES_CC@
169CMESSAGES_H = @CMESSAGES_H@
170CMONEY_CC = @CMONEY_CC@
171CNUMERIC_CC = @CNUMERIC_CC@
172CPP = @CPP@
173CPPFLAGS = @CPPFLAGS@
174CPU_DEFINES_SRCDIR = @CPU_DEFINES_SRCDIR@
48c7b524 175CPU_OPT_BITS_RANDOM = @CPU_OPT_BITS_RANDOM@
9bf714c2 176CPU_OPT_EXT_RANDOM = @CPU_OPT_EXT_RANDOM@
4312e020
BK
177CSTDIO_H = @CSTDIO_H@
178CTIME_CC = @CTIME_CC@
179CTIME_H = @CTIME_H@
180CXX = @CXX@
181CXXCPP = @CXXCPP@
c18dc5cc 182CXXFILT = @CXXFILT@
4312e020
BK
183CXXFLAGS = @CXXFLAGS@
184CYGPATH_W = @CYGPATH_W@
185C_INCLUDE_DIR = @C_INCLUDE_DIR@
b25e6b79 186DBLATEX = @DBLATEX@
4312e020
BK
187DEBUG_FLAGS = @DEBUG_FLAGS@
188DEFS = @DEFS@
b25e6b79
BK
189DOT = @DOT@
190DOXYGEN = @DOXYGEN@
25e5de9a 191DSYMUTIL = @DSYMUTIL@
4312e020
BK
192DUMPBIN = @DUMPBIN@
193ECHO_C = @ECHO_C@
194ECHO_N = @ECHO_N@
195ECHO_T = @ECHO_T@
196EGREP = @EGREP@
197ERROR_CONSTANTS_SRCDIR = @ERROR_CONSTANTS_SRCDIR@
198EXEEXT = @EXEEXT@
36101de9 199EXTRA_CFLAGS = @EXTRA_CFLAGS@
4312e020
BK
200EXTRA_CXX_FLAGS = @EXTRA_CXX_FLAGS@
201FGREP = @FGREP@
68c2e9e9 202FREESTANDING_FLAGS = @FREESTANDING_FLAGS@
4312e020 203GLIBCXX_INCLUDES = @GLIBCXX_INCLUDES@
ec6fa56a 204GLIBCXX_LIBS = @GLIBCXX_LIBS@
4312e020 205GREP = @GREP@
1ec62aa9 206HWCAP_CFLAGS = @HWCAP_CFLAGS@
5213506e 207INSTALL = @INSTALL@
4312e020
BK
208INSTALL_DATA = @INSTALL_DATA@
209INSTALL_PROGRAM = @INSTALL_PROGRAM@
210INSTALL_SCRIPT = @INSTALL_SCRIPT@
211INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
212LD = @LD@
213LDFLAGS = @LDFLAGS@
214LIBICONV = @LIBICONV@
4312e020
BK
215LIBOBJS = @LIBOBJS@
216LIBS = @LIBS@
4312e020 217LIBTOOL = @LIBTOOL@
25e5de9a 218LIPO = @LIPO@
4312e020 219LN_S = @LN_S@
7c1e7eed
JW
220LONG_DOUBLE_128_FLAGS = @LONG_DOUBLE_128_FLAGS@
221LONG_DOUBLE_ALT128_COMPAT_FLAGS = @LONG_DOUBLE_ALT128_COMPAT_FLAGS@
6d49b790 222LONG_DOUBLE_COMPAT_FLAGS = @LONG_DOUBLE_COMPAT_FLAGS@
4312e020
BK
223LTLIBICONV = @LTLIBICONV@
224LTLIBOBJS = @LTLIBOBJS@
225MAINT = @MAINT@
226MAKEINFO = @MAKEINFO@
5213506e 227MKDIR_P = @MKDIR_P@
4312e020 228NM = @NM@
25e5de9a
PG
229NMEDIT = @NMEDIT@
230OBJDUMP = @OBJDUMP@
4312e020
BK
231OBJEXT = @OBJEXT@
232OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
233OPT_LDFLAGS = @OPT_LDFLAGS@
234OS_INC_SRCDIR = @OS_INC_SRCDIR@
25e5de9a
PG
235OTOOL = @OTOOL@
236OTOOL64 = @OTOOL64@
4312e020
BK
237PACKAGE = @PACKAGE@
238PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
239PACKAGE_NAME = @PACKAGE_NAME@
240PACKAGE_STRING = @PACKAGE_STRING@
241PACKAGE_TARNAME = @PACKAGE_TARNAME@
5213506e 242PACKAGE_URL = @PACKAGE_URL@
4312e020
BK
243PACKAGE_VERSION = @PACKAGE_VERSION@
244PATH_SEPARATOR = @PATH_SEPARATOR@
b25e6b79 245PDFLATEX = @PDFLATEX@
4312e020
BK
246RANLIB = @RANLIB@
247SECTION_FLAGS = @SECTION_FLAGS@
248SECTION_LDFLAGS = @SECTION_LDFLAGS@
249SED = @SED@
250SET_MAKE = @SET_MAKE@
251SHELL = @SHELL@
252STRIP = @STRIP@
253SYMVER_FILE = @SYMVER_FILE@
254TOPLEVEL_INCLUDES = @TOPLEVEL_INCLUDES@
255USE_NLS = @USE_NLS@
256VERSION = @VERSION@
2077db1b
CT
257VTV_CXXFLAGS = @VTV_CXXFLAGS@
258VTV_CXXLINKFLAGS = @VTV_CXXLINKFLAGS@
259VTV_PCH_CXXFLAGS = @VTV_PCH_CXXFLAGS@
4312e020 260WARN_FLAGS = @WARN_FLAGS@
a4395a84 261XMLCATALOG = @XMLCATALOG@
b25e6b79
BK
262
263# Validate existing XML structure.
264XMLLINT = xmllint
265XSLTPROC = xsltproc
b329dd10 266XSL_STYLE_DIR = @XSL_STYLE_DIR@
5213506e
RW
267abs_builddir = @abs_builddir@
268abs_srcdir = @abs_srcdir@
269abs_top_builddir = @abs_top_builddir@
270abs_top_srcdir = @abs_top_srcdir@
4312e020
BK
271ac_ct_CC = @ac_ct_CC@
272ac_ct_CXX = @ac_ct_CXX@
273ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
274am__leading_dot = @am__leading_dot@
275am__tar = @am__tar@
276am__untar = @am__untar@
277baseline_dir = @baseline_dir@
00fc1bf6 278baseline_subdir_switch = @baseline_subdir_switch@
4312e020
BK
279bindir = @bindir@
280build = @build@
281build_alias = @build_alias@
282build_cpu = @build_cpu@
283build_os = @build_os@
284build_vendor = @build_vendor@
5213506e 285builddir = @builddir@
4312e020
BK
286check_msgfmt = @check_msgfmt@
287datadir = @datadir@
5213506e
RW
288datarootdir = @datarootdir@
289docdir = @docdir@
290dvidir = @dvidir@
4312e020
BK
291enable_shared = @enable_shared@
292enable_static = @enable_static@
293exec_prefix = @exec_prefix@
3c36aa6b 294get_gcc_base_ver = @get_gcc_base_ver@
4312e020
BK
295glibcxx_MOFILES = @glibcxx_MOFILES@
296glibcxx_PCHFLAGS = @glibcxx_PCHFLAGS@
297glibcxx_POFILES = @glibcxx_POFILES@
298glibcxx_builddir = @glibcxx_builddir@
ac6d1200
BK
299glibcxx_compiler_pic_flag = @glibcxx_compiler_pic_flag@
300glibcxx_compiler_shared_flag = @glibcxx_compiler_shared_flag@
34a2b755 301glibcxx_cxx98_abi = @glibcxx_cxx98_abi@
4312e020 302glibcxx_localedir = @glibcxx_localedir@
ac6d1200 303glibcxx_lt_pic_flag = @glibcxx_lt_pic_flag@
4312e020
BK
304glibcxx_prefixdir = @glibcxx_prefixdir@
305glibcxx_srcdir = @glibcxx_srcdir@
4312e020
BK
306glibcxx_toolexecdir = @glibcxx_toolexecdir@
307glibcxx_toolexeclibdir = @glibcxx_toolexeclibdir@
308gxx_include_dir = @gxx_include_dir@
309host = @host@
310host_alias = @host_alias@
311host_cpu = @host_cpu@
312host_os = @host_os@
313host_vendor = @host_vendor@
b25e6b79
BK
314
315# HTML
316htmldir = "$(DESTDIR)@docdir@"
4312e020 317includedir = @includedir@
b25e6b79
BK
318
319# TEXINFO,INFO
320infodir = "$(DESTDIR)@infodir@"
4312e020
BK
321install_sh = @install_sh@
322libdir = @libdir@
323libexecdir = @libexecdir@
324libtool_VERSION = @libtool_VERSION@
5213506e 325localedir = @localedir@
4312e020 326localstatedir = @localstatedir@
7de6ba7a 327lt_host_flags = @lt_host_flags@
b25e6b79
BK
328
329# MAN
330mandir = "$(DESTDIR)@mandir@"
4312e020
BK
331mkdir_p = @mkdir_p@
332multi_basedir = @multi_basedir@
333oldincludedir = @oldincludedir@
b25e6b79
BK
334
335# PDF
336pdfdir = "$(DESTDIR)@docdir@"
4312e020
BK
337port_specific_symbol_files = @port_specific_symbol_files@
338prefix = @prefix@
339program_transform_name = @program_transform_name@
5213506e 340psdir = @psdir@
2a5d011c 341python_mod_dir = @python_mod_dir@
4312e020
BK
342sbindir = @sbindir@
343sharedstatedir = @sharedstatedir@
5213506e 344srcdir = @srcdir@
4312e020
BK
345sysconfdir = @sysconfdir@
346target = @target@
347target_alias = @target_alias@
348target_cpu = @target_cpu@
349target_os = @target_os@
350target_vendor = @target_vendor@
1183dc2c 351thread_header = @thread_header@
a2c5150e 352tmake_file = @tmake_file@
5213506e
RW
353top_build_prefix = @top_build_prefix@
354top_builddir = @top_builddir@
355top_srcdir = @top_srcdir@
5d1c8e77 356toplevel_builddir = @toplevel_builddir@
4312e020
BK
357toplevel_srcdir = @toplevel_srcdir@
358
359# May be used by various substitution variables.
3c36aa6b 360gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
4312e020
BK
361MAINT_CHARSET = latin1
362mkinstalldirs = $(SHELL) $(toplevel_srcdir)/mkinstalldirs
363PWD_COMMAND = $${PWDCMD-pwd}
364STAMP = echo timestamp >
365toolexecdir = $(glibcxx_toolexecdir)
366toolexeclibdir = $(glibcxx_toolexeclibdir)
b124c5c4 367@ENABLE_WERROR_FALSE@WERROR_FLAG =
c3be340e 368@ENABLE_WERROR_TRUE@WERROR_FLAG = -Werror
2077db1b
CT
369@ENABLE_EXTERN_TEMPLATE_FALSE@XTEMPLATE_FLAGS =
370@ENABLE_EXTERN_TEMPLATE_TRUE@XTEMPLATE_FLAGS = -fno-implicit-templates
7c1e7eed
JW
371@GLIBCXX_LDBL_ALT128_COMPAT_FALSE@LDBL_128_FLAGS =
372@GLIBCXX_LDBL_ALT128_COMPAT_TRUE@LDBL_128_FLAGS = $(LONG_DOUBLE_128_FLAGS)
4312e020
BK
373
374# These bits are all figured out from configure. Look in acinclude.m4
375# or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS.
376CONFIG_CXXFLAGS = \
7c1e7eed 377 $(SECTION_FLAGS) $(HWCAP_CFLAGS) -frandom-seed=$@ $(LDBL_128_FLAGS)
4312e020
BK
378
379WARN_CXXFLAGS = \
b124c5c4 380 $(WARN_FLAGS) $(WERROR_FLAG) -fdiagnostics-show-location=once
4312e020
BK
381
382
383# -I/-D flags to pass when compiling.
74b7ec8c 384AM_CPPFLAGS = $(GLIBCXX_INCLUDES) $(CPPFLAGS)
b25e6b79
BK
385@BUILD_XML_FALSE@STAMP_XML =
386
387# Documentation Overview
388#
389# There are two main input materials for libstdc++ documentation.
390# The first is the doxygen markup in libstdc++ sources, which is a
391# reference to the API. And the second is the manual, via docbook markup in
392# doc/xml/.
393#
394# A third and more obscure option deals with charting performance
395# tests, and should be considered experimental.
396
397# Documentation conditionals for output.
398@BUILD_XML_TRUE@STAMP_XML = doc-xml
399@BUILD_XML_FALSE@STAMP_INSTALL_XML =
400@BUILD_XML_TRUE@STAMP_INSTALL_XML = doc-install-xml
401@BUILD_HTML_FALSE@STAMP_HTML =
402@BUILD_HTML_TRUE@STAMP_HTML = doc-html
403@BUILD_HTML_FALSE@STAMP_INSTALL_HTML =
404@BUILD_HTML_TRUE@STAMP_INSTALL_HTML = doc-install-html
405@BUILD_MAN_FALSE@STAMP_MAN =
406@BUILD_MAN_TRUE@STAMP_MAN = doc-man
407@BUILD_MAN_FALSE@STAMP_INSTALL_MAN =
408@BUILD_MAN_TRUE@STAMP_INSTALL_MAN = doc-install-man
409@BUILD_PDF_FALSE@STAMP_PDF =
410@BUILD_PDF_TRUE@STAMP_PDF = doc-pdf
411@BUILD_PDF_FALSE@STAMP_INSTALL_PDF =
412@BUILD_PDF_TRUE@STAMP_INSTALL_PDF = doc-install-pdf
413@BUILD_EPUB_FALSE@STAMP_EPUB = doc-epub
414@BUILD_EPUB_TRUE@STAMP_EPUB = doc-epub
415@BUILD_EPUB_FALSE@STAMP_INSTALL_EPUB = doc-install-epub
416@BUILD_EPUB_TRUE@STAMP_INSTALL_EPUB = doc-install-epub
417
418# Default creation and installation rules.
419# Point to best sub-rule for the requested documentation target and
420# create, and then install toplevel directory with standardized names
421# and layouts.
422
423# XML
424xmldir = "$(DESTDIR)@docdir@"
425
426# EPUB
427# Assumes ruby installed
428epubdir = "$(DESTDIR)@docdir@"
4312e020 429
8a165db0 430# Doxygen configuration
0f752f44 431# Assumes doxygen, graphviz (with dot), pdflatex installed
03a32789
BK
432doxygen_script = ${top_srcdir}/scripts/run_doxygen
433doxygen_outdir = ${glibcxx_builddir}/doc/doxygen
81df260f 434api_xml = ${doxygen_outdir}/xml/libstdc++-api.xml
0f752f44 435doxygen_pdf = ${doxygen_outdir}/latex/refman.pdf
5ab3a5af 436api_pdf = ${doxygen_outdir}/pdf/libstdc++-api.pdf
0f752f44 437
8a165db0
BK
438# Docbook configuration.
439# Assumes
440# libxslt
0f752f44
BK
441# dblatex
442# pdflatex
8a165db0 443# docbook-style-xsl
0f752f44 444# emacs-nxml-mode
03a32789 445docbook_outdir = ${glibcxx_builddir}/doc/docbook
0f752f44
BK
446xml_dir = ${glibcxx_srcdir}/doc/xml
447xml_sources_basic = \
448 ${xml_dir}/spine.xml \
449 ${xml_dir}/authors.xml \
450 ${xml_dir}/api.xml \
451 ${xml_dir}/faq.xml
452
453xml_sources_manual = \
454 ${xml_dir}/manual/abi.xml \
455 ${xml_dir}/manual/algorithms.xml \
456 ${xml_dir}/manual/allocator.xml \
457 ${xml_dir}/manual/auto_ptr.xml \
458 ${xml_dir}/manual/atomics.xml \
459 ${xml_dir}/manual/backwards_compatibility.xml \
460 ${xml_dir}/manual/bitmap_allocator.xml \
461 ${xml_dir}/manual/build_hacking.xml \
462 ${xml_dir}/manual/codecvt.xml \
463 ${xml_dir}/manual/concurrency.xml \
464 ${xml_dir}/manual/concurrency_extensions.xml \
465 ${xml_dir}/manual/configure.xml \
466 ${xml_dir}/manual/containers.xml \
467 ${xml_dir}/manual/ctype.xml \
468 ${xml_dir}/manual/debug_mode.xml \
469 ${xml_dir}/manual/debug.xml \
470 ${xml_dir}/manual/diagnostics.xml \
d2b0caaa 471 ${xml_dir}/manual/documentation_hacking.xml \
0f752f44
BK
472 ${xml_dir}/manual/evolution.xml \
473 ${xml_dir}/manual/extensions.xml \
474 ${xml_dir}/manual/internals.xml \
475 ${xml_dir}/manual/intro.xml \
476 ${xml_dir}/manual/io.xml \
477 ${xml_dir}/manual/iterators.xml \
478 ${xml_dir}/manual/locale.xml \
479 ${xml_dir}/manual/localization.xml \
480 ${xml_dir}/manual/messages.xml \
481 ${xml_dir}/manual/mt_allocator.xml \
482 ${xml_dir}/manual/numerics.xml \
483 ${xml_dir}/manual/parallel_mode.xml \
ce1140e3 484 ${xml_dir}/manual/policy_data_structures.xml \
74080cba 485 ${xml_dir}/manual/policy_data_structures_biblio.xml \
0f752f44 486 ${xml_dir}/manual/prerequisites.xml \
0f752f44
BK
487 ${xml_dir}/manual/shared_ptr.xml \
488 ${xml_dir}/manual/spine.xml \
489 ${xml_dir}/manual/status_cxx1998.xml \
f25481f4 490 ${xml_dir}/manual/status_cxx2011.xml \
109a3af4 491 ${xml_dir}/manual/status_cxx2014.xml \
57ede05c
JW
492 ${xml_dir}/manual/status_cxx2017.xml \
493 ${xml_dir}/manual/status_cxx2020.xml \
0f752f44
BK
494 ${xml_dir}/manual/status_cxxtr1.xml \
495 ${xml_dir}/manual/status_cxxtr24733.xml \
496 ${xml_dir}/manual/strings.xml \
497 ${xml_dir}/manual/support.xml \
498 ${xml_dir}/manual/test.xml \
ce1140e3 499 ${xml_dir}/manual/test_policy_data_structures.xml \
0f752f44
BK
500 ${xml_dir}/manual/using.xml \
501 ${xml_dir}/manual/using_exceptions.xml \
502 ${xml_dir}/manual/utilities.xml \
503 ${xml_dir}/manual/appendix_free.xml \
504 ${xml_dir}/manual/appendix_contributing.xml \
505 ${xml_dir}/manual/appendix_porting.xml
8a165db0
BK
506
507xml_sources_extra = \
669b5857 508 ${xml_dir}/gnu/fdl-1.3.xml \
60f8b2e2 509 ${xml_dir}/gnu/gpl-3.0.xml
0f752f44
BK
510
511xml_sources = \
512 ${xml_sources_basic} \
513 ${xml_sources_manual} \
514 ${xml_sources_extra}
8a165db0 515
154c4a08
BK
516xml_image_dir = ${xml_dir}/images
517xml_image_basic = \
518 ${xml_image_dir}/confdeps.png \
519 ${xml_image_dir}/pbds_balls_and_bins.png \
520 ${xml_image_dir}/pbds_container_tag_hierarchy.png \
521 ${xml_image_dir}/pbds_different_underlying_dss_1.png \
522 ${xml_image_dir}/pbds_different_underlying_dss_2.png \
523 ${xml_image_dir}/pbds_embedded_lists_1.png \
524 ${xml_image_dir}/pbds_embedded_lists_2.png \
525 ${xml_image_dir}/pbds_embedded_lists_3.png \
526 ${xml_image_dir}/pbds_exception_hierarchy.png \
527 ${xml_image_dir}/pbds_hash_policy_cd.png \
528 ${xml_image_dir}/pbds_hash_ranged_hash_range_hashing_fns.png \
529 ${xml_image_dir}/pbds_hash_range_hashing_seq_diagram2.png \
530 ${xml_image_dir}/pbds_hash_range_hashing_seq_diagram.png \
531 ${xml_image_dir}/pbds_insert_resize_sequence_diagram1.png \
532 ${xml_image_dir}/pbds_insert_resize_sequence_diagram2.png \
533 ${xml_image_dir}/pbds_insert_resize_sequence_diagram3.png \
534 ${xml_image_dir}/pbds_invalidation_guarantee_erase.png \
535 ${xml_image_dir}/pbds_invalidation_tag_hierarchy.png \
536 ${xml_image_dir}/pbds_list_update.png \
537 ${xml_image_dir}/pbds_node_invariants.png \
538 ${xml_image_dir}/pbds_pat_trie.png \
539 ${xml_image_dir}/pbds_point_iterator_hierarchy.png \
540 ${xml_image_dir}/pbds_point_iterators_range_ops_1.png \
541 ${xml_image_dir}/pbds_point_iterators_range_ops_2.png \
542 ${xml_image_dir}/pbds_priority_queue_different_underlying_dss.png \
543 ${xml_image_dir}/pbds_priority_queue_tag_hierarchy.png \
544 ${xml_image_dir}/pbds_rationale_null_node_updator.png \
545 ${xml_image_dir}/pbds_resize_policy_cd.png \
546 ${xml_image_dir}/pbds_restoring_node_invariants.png \
547 ${xml_image_dir}/pbds_simple_list.png \
548 ${xml_image_dir}/pbds_tree_node_invalidations.png \
549 ${xml_image_dir}/pbds_tree_node_invariants.png \
550 ${xml_image_dir}/pbds_tree_node_updator_policy_cd.png \
551 ${xml_image_dir}/pbds_trie_node_updator_policy_cd.png \
696d4bc1 552 ${xml_image_dir}/pbds_update_seq_diagram.png
154c4a08
BK
553
554xml_image_generated = \
555 ${xml_image_dir}/pbds_binary_priority_queue_int_push_pop.png \
556 ${xml_image_dir}/pbds_binary_priority_queue_int_push.png \
557 ${xml_image_dir}/pbds_ccgp_hash_int_subscript_insert.png \
558 ${xml_image_dir}/pbds_cc_hash_int_find.png \
559 ${xml_image_dir}/pbds_cc_hash_int_subscript_find.png \
560 ${xml_image_dir}/pbds_cc_hash_int_subscript_insert.png \
561 ${xml_image_dir}/pbds_gp_hash_int_find.png \
562 ${xml_image_dir}/pbds_gp_hash_int_subscript_find.png \
563 ${xml_image_dir}/pbds_gp_hash_int_subscript_insert.png \
564 ${xml_image_dir}/pbds_hash_int_erase_mem.png \
565 ${xml_image_dir}/pbds_hash_text_find.png \
566 ${xml_image_dir}/pbds_hash_zlob_int_find.png \
567 ${xml_image_dir}/pbds_multimap_text_find_large_s2p_hash.png \
568 ${xml_image_dir}/pbds_multimap_text_find_large_s2p_tree.png \
569 ${xml_image_dir}/pbds_multimap_text_find_small_s2p_hash.png \
570 ${xml_image_dir}/pbds_multimap_text_find_small_s2p_tree.png \
571 ${xml_image_dir}/pbds_multimap_text_insert_large_s2p_hash.png \
572 ${xml_image_dir}/pbds_multimap_text_insert_large_s2p_tree.png \
573 ${xml_image_dir}/pbds_multimap_text_insert_mem_large_s2p_hash.png \
574 ${xml_image_dir}/pbds_multimap_text_insert_mem_large_s2p_tree.png \
575 ${xml_image_dir}/pbds_multimap_text_insert_mem_small_s2p_hash.png \
576 ${xml_image_dir}/pbds_multimap_text_insert_mem_small_s2p_tree.png \
577 ${xml_image_dir}/pbds_multimap_text_insert_small_s2p_hash.png \
578 ${xml_image_dir}/pbds_multimap_text_insert_small_s2p_tree.png \
579 ${xml_image_dir}/pbds_pairing_priority_queue_text_modify_down_thin.png \
580 ${xml_image_dir}/pbds_pairing_priority_queue_text_modify_up_thin.png \
581 ${xml_image_dir}/pbds_pairing_priority_queue_text_push_pop.png \
582 ${xml_image_dir}/pbds_pairing_priority_queue_text_push.png \
583 ${xml_image_dir}/pbds_priority_queue_int_push_pop.png \
584 ${xml_image_dir}/pbds_priority_queue_int_push.png \
585 ${xml_image_dir}/pbds_priority_queue_text_join.png \
586 ${xml_image_dir}/pbds_priority_queue_text_modify_down.png \
587 ${xml_image_dir}/pbds_priority_queue_text_modify_up.png \
588 ${xml_image_dir}/pbds_priority_queue_text_pop_mem.png \
589 ${xml_image_dir}/pbds_priority_queue_text_push_pop.png \
590 ${xml_image_dir}/pbds_priority_queue_text_push.png \
591 ${xml_image_dir}/pbds_tree_int_find.png \
592 ${xml_image_dir}/pbds_tree_order_statistics.png \
593 ${xml_image_dir}/pbds_tree_split_join.png \
594 ${xml_image_dir}/pbds_tree_text_find.png \
595 ${xml_image_dir}/pbds_tree_text_insert_node.png \
596 ${xml_image_dir}/pbds_tree_text_insert_trie.png \
597 ${xml_image_dir}/pbds_tree_text_insert_vector.png \
598 ${xml_image_dir}/pbds_tree_text_lor_find.png
599
600xml_images = ${xml_image_basic} ${xml_image_generated}
8a165db0 601xml_noinst = \
0f752f44
BK
602 ${xml_dir}/book.txml \
603 ${xml_dir}/chapter.txml \
d2b0caaa 604 ${xml_dir}/class.txml \
154c4a08
BK
605 ${xml_image_dir}/confdeps.dot \
606 ${xml_image_dir}/confdeps.pdf
8a165db0 607
ce1140e3 608XSLT_FLAGS = --nonet --xinclude
109a3af4 609XSLT_PARAM = --param toc.section.depth 4 --param generate.consistent.ids 1
b329dd10
BK
610#XSL_STYLE_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl-ns
611#XSL_STYLE_DIR = /usr/share/sgml/docbook/xsl-ns-stylesheets
8a165db0 612XSL_FO_STYLE = $(XSL_STYLE_DIR)/fo/docbook.xsl
27f36b78 613XSL_HTML_STYLE = $(XSL_STYLE_DIR)/xhtml/chunk.xsl
8d24c975 614XSL_HTML_SINGLE_STYLE = $(XSL_STYLE_DIR)/html/docbook.xsl
43fe49ec 615XSL_EPUB_STYLE = $(XSL_STYLE_DIR)/epub3/chunk.xsl
8d24c975 616XSL_LOCAL_STYLE = ${glibcxx_builddir}/doc/xsl/customization.xsl
547f963b
BK
617
618# XML, all one page
619# Some info on canonicalization
620# http://www.mail-archive.com/help-texinfo@gnu.org/msg00864.html
81df260f
BK
621manual_xml = ${docbook_outdir}/xml/libstdc++-manual.xml
622set_xml = ${docbook_outdir}/xml/libstdc++-set.xml
74080cba
BK
623LINT_FLAGS = --debug --xinclude --noent --noblanks --noout
624SCHEMA_FLAGS = --dtdvalid http://www.docbook.org/xml/5.0/dtd/docbook.dtd
625SCHEMA_RNG_FLAGS = --relaxng http://www.docbook.org/xml/5.0/rng/docbook.rng
626#SCHEMA_FLAGS = --nonet --dtdvalid /usr/share/xxx/dtd/5.0/docbook.dtd
627XMLLINT_VALID_FLAGS = $(LINT_FLAGS) $(SCHEMA_FLAGS)
628XMLLINT_FLAGS = --xinclude --nsclean --c14n --noent --noblanks --nocdata
8a165db0 629
5bca11c4 630# HTML, all one page
8d24c975 631# NB: Have to generate customization XSL for UTF-8 output.
5bca11c4 632manual_html = ${docbook_outdir}/html/libstdc++-manual-single.html
8a165db0 633
5bca11c4
BK
634# PDF, via dblatex
635manual_pdf = ${docbook_outdir}/pdf/libstdc++-manual.pdf
74080cba 636DBLATEX_FLAGS = --verbose --pdf --dump --debug --tmpdir=${docbook_outdir}/latex
03a32789 637
b25e6b79
BK
638# TEXINFO, via docbook2X
639# NB: Both experimental and tempermental
640manual_texi = ${docbook_outdir}/texinfo/libstdc++-manual.texi
641manual_info = ${docbook_outdir}/texinfo/libstdc++-manual.info
547f963b
BK
642DB2TEXI_FLAGS = \
643 --encoding=utf-8//TRANSLIT \
644 --string-param output-file="libstdc++-manual" \
645 --string-param directory-category="GNU C++ Library" \
7d8cafcd 646 --string-param explicit-node-names=true
547f963b
BK
647
648
43fe49ec
BK
649# EPUB version 3
650# http://sourceforge.net/projects/docbook/files/epub3/
651# Can verify document with epubcheck
b25e6b79
BK
652manual_epub = ${docbook_outdir}/epub/libstdc++-manual.epub
653
03a32789
BK
654# Performance doc and graph configuration.
655# Assumes pychart, beautiful soup installed.
154c4a08
BK
656# Generates the plots/graph imagery for performance testing.
657doc_performance_script = ${top_srcdir}/scripts/make_graph.py
40e053e3 658
4312e020 659# By adding these files here, automake will remove them for 'make clean'
b25e6b79 660CLEANFILES = *.log stamp*
4312e020
BK
661all: all-am
662
663.SUFFIXES:
664$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/fragment.am $(am__configure_deps)
665 @for dep in $?; do \
666 case '$(am__configure_deps)' in \
667 *$$dep*) \
5213506e
RW
668 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
669 && { if test -f $@; then exit 0; else break; fi; }; \
4312e020
BK
670 exit 1;; \
671 esac; \
672 done; \
5213506e
RW
673 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign --ignore-deps doc/Makefile'; \
674 $(am__cd) $(top_srcdir) && \
675 $(AUTOMAKE) --foreign --ignore-deps doc/Makefile
4312e020
BK
676Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
677 @case '$?' in \
678 *config.status*) \
679 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
680 *) \
681 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
682 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
683 esac;
22e05272 684$(top_srcdir)/fragment.am $(am__empty):
4312e020
BK
685
686$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
687 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
688
689$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
690 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
691$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
692 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
5213506e 693$(am__aclocal_m4_deps):
4312e020
BK
694
695mostlyclean-libtool:
696 -rm -f *.lo
697
698clean-libtool:
699 -rm -rf .libs _libs
22e05272
JM
700tags TAGS:
701
702ctags CTAGS:
4312e020 703
22e05272 704cscope cscopelist:
4312e020 705
4312e020
BK
706check-am: all-am
707check: check-am
708all-am: Makefile
709installdirs:
710install: install-am
711install-exec: install-exec-am
712install-data: install-data-am
713uninstall: uninstall-am
714
715install-am: all-am
716 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
717
718installcheck: installcheck-am
719install-strip:
6ef93676
MH
720 if test -z '$(STRIP)'; then \
721 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
722 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
723 install; \
724 else \
725 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
726 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
727 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
728 fi
4312e020
BK
729mostlyclean-generic:
730
731clean-generic:
732 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
733
734distclean-generic:
735 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
5213506e 736 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
4312e020
BK
737
738maintainer-clean-generic:
739 @echo "This command is intended for maintainers to use"
740 @echo "it deletes files that may require special tools to rebuild."
741clean: clean-am
742
743clean-am: clean-generic clean-libtool clean-local mostlyclean-am
744
745distclean: distclean-am
746 -rm -f Makefile
5213506e 747distclean-am: clean-am distclean-generic
4312e020 748
4312e020
BK
749dvi-am:
750
5213506e
RW
751html-am:
752
4312e020
BK
753info-am:
754
755install-data-am:
756
5213506e
RW
757install-dvi-am:
758
4312e020
BK
759install-exec-am:
760
5213506e
RW
761install-html-am:
762
5213506e
RW
763install-info-am:
764
5213506e
RW
765install-pdf-am:
766
5213506e
RW
767install-ps-am:
768
4312e020
BK
769installcheck-am:
770
771maintainer-clean: maintainer-clean-am
772 -rm -f Makefile
773maintainer-clean-am: distclean-am maintainer-clean-generic
774
775mostlyclean: mostlyclean-am
776
777mostlyclean-am: mostlyclean-generic mostlyclean-libtool
778
4312e020
BK
779pdf-am:
780
4312e020
BK
781ps-am:
782
5213506e
RW
783uninstall-am:
784
785.MAKE: install-am install-strip
4312e020
BK
786
787.PHONY: all all-am check check-am clean clean-generic clean-libtool \
22e05272
JM
788 clean-local cscopelist-am ctags-am distclean distclean-generic \
789 distclean-libtool dvi dvi-am html html-am info info-am install \
790 install-am install-data install-data-am install-dvi \
791 install-dvi-am install-exec install-exec-am install-html \
792 install-html-am install-info install-info-am install-man \
793 install-pdf install-pdf-am install-ps install-ps-am \
794 install-strip installcheck installcheck-am installdirs \
795 maintainer-clean maintainer-clean-generic mostlyclean \
796 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
797 tags-am uninstall uninstall-am
798
799.PRECIOUS: Makefile
4312e020 800
03a32789 801
b25e6b79 802# Documentation primary rules.
7d8cafcd 803#
b25e6b79
BK
804# xml:
805# html:
806# pdf:
807# man:
808# info:
809# ps:
810# dvi:
811# epub:
812# install-xml:
813# install-html:
814# install-pdf:
815# install-man:
816# install-info:
817# install-ps:
818# install-dvi:
819# install-epub:
5bca11c4 820
b25e6b79
BK
821xml: $(STAMP_XML)
822install-xml: $(STAMP_INSTALL_XML)
03a32789 823
b25e6b79
BK
824html: $(STAMP_HTML)
825install-html: $(STAMP_INSTALL_HTML)
7d8cafcd 826
b25e6b79
BK
827man: $(STAMP_MAN)
828install-man: $(STAMP_INSTALL_MAN)
03a32789 829
b25e6b79
BK
830pdf: $(STAMP_PDF)
831install-pdf: $(STAMP_INSTALL_PDF)
03a32789 832
b25e6b79
BK
833epub: $(STAMP_EPUB)
834install-epub: $(STAMP_INSTALL_EPUB)
547f963b 835
b25e6b79
BK
836info:
837install-info:
7d8cafcd 838
b25e6b79
BK
839ps:
840install-ps:
4312e020 841
b25e6b79
BK
842dvi:
843install-dvi:
844stamp-xml: stamp-xml-single-docbook stamp-xml-single-doxygen
845 $(STAMP) stamp-xml
846
847doc-xml: stamp-xml
848
849doc-install-xml: doc-xml
850 test -z ${xmldir} || $(mkinstalldirs) ${xmldir}
851 $(INSTALL_DATA) ${manual_xml} ${xmldir}
852 $(INSTALL_DATA) ${api_xml} ${xmldir}
a6aff075 853stamp-html: stamp-html-docbook-data stamp-html-doxygen
b25e6b79
BK
854 $(STAMP) stamp-html
855
856doc-html: stamp-html
857
858doc-install-html: doc-html
859 test -z ${htmldir} || $(mkinstalldirs) ${htmldir}
860 cp -r ${docbook_outdir}/html ${htmldir}/libstdc++-manual.html;
861 cp -r ${doxygen_outdir}/html ${htmldir}/libstdc++-api.html;
862stamp-pdf: stamp-pdf-docbook stamp-pdf-doxygen
863 $(STAMP) stamp-pdf
864
865doc-pdf: stamp-pdf
866
867doc-install-pdf: doc-pdf
868 test -z ${pdfdir} || $(mkinstalldirs) ${pdfdir}
869 $(INSTALL_DATA) ${docbook_outdir}/pdf/libstdc++-manual.pdf ${pdfdir}
870 $(INSTALL_DATA) ${doxygen_outdir}/pdf/libstdc++-api.pdf ${pdfdir}
871stamp-man: stamp-man-doxygen
872 $(STAMP) stamp-man
873
874doc-man: stamp-man
875
876doc-install-man: doc-man
877 test -z ${mandir} || $(mkinstalldirs) ${mandir}
878 cp -r ${doxygen_outdir}/man/man3 ${mandir}
879stamp-texinfo: stamp-texinfo-docbook
880 $(STAMP) stamp-texinfo
881
882stamp-info: stamp-info-docbook
883 $(STAMP) stamp-info
884
885doc-texinfo: stamp-texinfo
886
887doc-info: stamp-info
888
889doc-install-texinfo: doc-texinfo
890 test -z ${infodir} || $(mkinstalldirs) ${infodir}
891 $(INSTALL_DATA) ${manual_texi} ${infodir}
892
893doc-install-info: doc-info
894 test -z ${infodir} || $(mkinstalldirs) ${infodir}
895 $(INSTALL_DATA) ${manual_info} ${infodir}
896stamp-epub: stamp-epub-docbook
897 $(STAMP) stamp-epub
898
899doc-epub: stamp-epub
8a165db0 900
b25e6b79
BK
901doc-install-epub: doc-epub
902 test -z ${epubdir} || $(mkinstalldirs) ${epubdir}
903 $(INSTALL_DATA) ${manual_epub} ${epubdir}
904
905${doxygen_outdir}/xml:
906 mkdir -p ${doxygen_outdir}/xml
907
908${doxygen_outdir}/html:
909 mkdir -p ${doxygen_outdir}/html
910
911${doxygen_outdir}/latex:
912 mkdir -p ${doxygen_outdir}/latex
913
914${doxygen_outdir}/pdf:
915 mkdir -p ${doxygen_outdir}/pdf
916
917${doxygen_outdir}/man:
918 mkdir -p ${doxygen_outdir}/man
919
920stamp-xml-doxygen: ${doxygen_outdir}/xml
04d392e8
JW
921 -srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
922 builddir=`cd ..; ${PWD_COMMAND}`; \
03a32789 923 ${SHELL} ${doxygen_script} \
e3b6d3a8 924 --host_alias=${host_alias} --mode=xml \
04d392e8 925 "$${srcdir}" "$${builddir}" NO
b25e6b79
BK
926 $(STAMP) stamp-xml-doxygen
927
928stamp-xml-single-doxygen: stamp-xml-doxygen
8a165db0 929 @echo "Generating doxygen xml single file..."
03a32789 930 $(XSLTPROC) ${doxygen_outdir}/xml/combine.xslt \
7d8cafcd 931 ${doxygen_outdir}/xml/index.xml > ${api_xml};
b25e6b79 932 $(STAMP) stamp-xml-single-doxygen
0f752f44 933
b25e6b79 934stamp-html-doxygen: ${doxygen_outdir}/html
04d392e8
JW
935 -srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
936 builddir=`cd ..; ${PWD_COMMAND}`; \
0f752f44 937 ${SHELL} ${doxygen_script} \
e3b6d3a8 938 --host_alias=${host_alias} --mode=html \
04d392e8 939 "$${srcdir}" "$${builddir}" YES
b25e6b79 940 $(STAMP) stamp-html-doxygen
0f752f44 941
b25e6b79 942stamp-latex-doxygen: ${doxygen_outdir}/latex
04d392e8
JW
943 -srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
944 builddir=`cd ..; ${PWD_COMMAND}`; \
b25e6b79 945 ${SHELL} ${doxygen_script} \
e3b6d3a8 946 --host_alias=${host_alias} --mode=latex --latex_cmd=$(LATEX_CMD) \
04d392e8 947 "$${srcdir}" "$${builddir}" NO
b25e6b79 948 $(STAMP) stamp-latex-doxygen
5ab3a5af 949
b25e6b79
BK
950# Chance of loooooonnggg creation time on this rule. Iff this fails,
951# look at refman.log and see if TeX's memory is exhausted. Symptoms
952# include asking a wizard to enlarge capacity. If this is the case,
953# find texmf.cnf and add a zero for pool_size, string_vacancies,
e3b6d3a8
JW
954# max_strings, and pool_free values. A much simpler workaround is to
955# install lualatex and set LATEX_CMD=lualatex when running make.
5ea37bca 956# Errors like "File `foo.sty' not found" mean a TeX package is missing.
b25e6b79 957stamp-pdf-doxygen: stamp-latex-doxygen ${doxygen_outdir}/pdf
43a35b26 958 @echo "Generating doxygen pdf file...";
e3b6d3a8 959 -$(MAKE) -C ${doxygen_outdir}/latex -i pdf
43a35b26 960 @if [ -f ${doxygen_pdf} ]; then \
5ab3a5af
BK
961 mv ${doxygen_pdf} ${api_pdf} ; \
962 echo ":: PDF file is ${api_pdf}"; \
0f752f44
BK
963 else \
964 echo "... error"; \
5ea37bca 965 grep -F 'LaTeX Error' ${doxygen_outdir}/latex/refman.log; \
be8d5f99 966 grep -F 'TeX capacity exceeded, sorry' ${doxygen_outdir}/latex/refman.log; \
0f752f44
BK
967 exit 12; \
968 fi
60f8b2e2
BK
969 $(STAMP) stamp-pdf-doxygen
970
b25e6b79 971stamp-man-doxygen: ${doxygen_outdir}/man
04d392e8
JW
972 -srcdir=`cd ${top_srcdir}; ${PWD_COMMAND}`; \
973 builddir=`cd ..; ${PWD_COMMAND}`; \
b25e6b79 974 ${SHELL} ${doxygen_script} \
e3b6d3a8 975 --host_alias=${host_alias} --mode=man \
04d392e8 976 "$${srcdir}" "$${builddir}" YES
b25e6b79 977 $(STAMP) stamp-man-doxygen
0f752f44 978
b25e6b79
BK
979doc-xml-doxygen: stamp-xml-doxygen
980doc-xml-single-doxygen: stamp-xml-single-doxygen
981doc-html-doxygen: stamp-html-doxygen
982doc-latex-doxygen: stamp-latex-doxygen
983doc-pdf-doxygen: stamp-pdf-doxygen
984doc-man-doxygen: stamp-man-doxygen
985
986${docbook_outdir}/epub:
987 mkdir -p ${docbook_outdir}/epub
43fe49ec 988 mkdir -p ${docbook_outdir}/epub/OEBPS/images
4312e020 989
547f963b
BK
990${docbook_outdir}/fo:
991 mkdir -p ${docbook_outdir}/fo
992
03a32789
BK
993${docbook_outdir}/html:
994 mkdir -p ${docbook_outdir}/html
a6aff075 995 mkdir -p ${docbook_outdir}/html/images
5e3a0ed1 996 mkdir -p ${docbook_outdir}/html/manual
8a165db0 997
03a32789
BK
998${docbook_outdir}/pdf:
999 mkdir -p ${docbook_outdir}/pdf
8a165db0 1000
74080cba
BK
1001${docbook_outdir}/latex:
1002 mkdir -p ${docbook_outdir}/latex
1003
547f963b
BK
1004${docbook_outdir}/texinfo:
1005 mkdir -p ${docbook_outdir}/texinfo
8a165db0 1006
03a32789
BK
1007${docbook_outdir}/xml:
1008 mkdir -p ${docbook_outdir}/xml
b25e6b79 1009stamp-xml-single-docbook: $(xml_sources) ${docbook_outdir}/xml
8a165db0 1010 @echo "Generating XML single..."
b25e6b79
BK
1011 $(XMLLINT) $(XMLLINT_FLAGS) \
1012 ${top_srcdir}/doc/xml/manual/spine.xml > ${manual_xml};
1013 $(XMLLINT) $(XMLLINT_FLAGS) \
1014 ${top_srcdir}/doc/xml/spine.xml > ${set_xml};
b25e6b79
BK
1015 $(STAMP) stamp-xml-single-docbook
1016
1017doc-xml-single-docbook: stamp-xml-single-docbook
74080cba
BK
1018doc-xml-validate-docbook: doc-xml-validate-dtd-db
1019
1020doc-xml-validate-dtd-db: $(xml_sources) $(xml_images)
1021 @echo "Generating XML validation log..."
1022 $(XMLLINT) $(XMLLINT_VALID_FLAGS) ${top_srcdir}/doc/xml/spine.xml
1023
1024doc-xml-validate-rng-db: $(xml_sources) $(xml_images) doc-xml-single-docbook
1025 @echo "Generating XML RelaxNG validation log..."
1026 $(XMLLINT) $(LINT_FLAGS) $(SCHEMA_RNG_FLAGS) ${set_xml}
8a165db0 1027
a6aff075
BK
1028# HTML support files
1029stamp-html-docbook-images: stamp-html-docbook $(xml_images)
1030 $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/html/images
1031 $(STAMP) stamp-html-docbook-images
1032
ca314fbd 1033stamp-html-docbook-data: stamp-html-docbook-images
a6aff075
BK
1034 $(STAMP) stamp-html-docbook-data
1035
8d24c975 1036# HTML, "chunked" into index plus chapters as separate pages
b25e6b79 1037stamp-html-docbook: $(xml_sources) ${docbook_outdir}/html
8a165db0 1038 @echo "Generating html files..."
ce1140e3 1039 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${docbook_outdir}/html/ \
8d24c975
BK
1040 --stringparam chunker.output.encoding UTF-8 \
1041 $(XSL_HTML_STYLE) \
1042 ${top_srcdir}/doc/xml/spine.xml
b25e6b79
BK
1043 $(STAMP) stamp-html-docbook
1044
a6aff075 1045doc-html-docbook: stamp-html-docbook-data
07f37a7f
JW
1046
1047# Generate the HTML pages and copy them back to the source tree.
1048doc-html-docbook-regenerate: doc-html-docbook
1049 $(INSTALL_DATA) ${docbook_outdir}/html/*.html ${top_srcdir}/doc/html
1050 $(INSTALL_DATA) ${docbook_outdir}/html/images/* ${top_srcdir}/doc/html/images
1051 $(INSTALL_DATA) ${docbook_outdir}/html/manual/*.html ${top_srcdir}/doc/html/manual
b25e6b79 1052stamp-html-single-docbook: $(xml_sources) ${docbook_outdir}/html
8a165db0 1053 @echo "Generating html single file..."
ce1140e3 1054 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) -o ${manual_html} \
8d24c975
BK
1055 ${XSL_LOCAL_STYLE} \
1056 ${top_srcdir}/doc/xml/spine.xml
b25e6b79
BK
1057 $(STAMP) stamp-html-single-docbook
1058
1059doc-html-single-docbook: stamp-html-single-docbook
8a165db0
BK
1060
1061# FO
b25e6b79 1062stamp-fo-docbook: $(xml_sources) ${docbook_outdir}/fo
8a165db0 1063 @echo "Generating FO files..."
ce1140e3 1064 $(XSLTPROC) $(XSLT_FLAGS) -o ${docbook_outdir}/fo/spine.fo \
8a165db0 1065 $(XSL_FO_STYLE) ${top_srcdir}/doc/xml/spine.xml
b25e6b79 1066 $(STAMP) stamp-fo-docbook
5bca11c4 1067
b25e6b79 1068doc-fo-docbook: stamp-fo-docbook
74080cba
BK
1069
1070doc-pdf-docbook-dirs: ${docbook_outdir}/pdf ${docbook_outdir}/latex
1071
1072doc-pdf-docbook-pre: $(xml_sources) doc-pdf-docbook-dirs
1073
1074stamp-pdf-docbook: doc-pdf-docbook-pre doc-xml-single-docbook
40e053e3 1075 @echo "Generating pdf dblatex files..."
74080cba
BK
1076 dblatex $(DBLATEX_FLAGS) -o ${manual_pdf} \
1077 ${top_srcdir}/doc/xml/spine.xml
b25e6b79
BK
1078 $(STAMP) stamp-pdf-docbook
1079
1080doc-pdf-docbook: stamp-pdf-docbook
1081
1082stamp-texinfo-docbook: stamp-xml-single-docbook ${docbook_outdir}/texinfo
547f963b 1083 @echo "Generating texinfo files..."
b25e6b79
BK
1084 db2x_docbook2texi $(DB2TEXI_FLAGS) ${set_xml}
1085 mv libstdc++-manual.texi ${manual_texi}
1086 $(STAMP) stamp-texinfo-docbook
1087
1088stamp-info-docbook: stamp-texinfo-docbook
1089 @echo "Generating info files..."
1090 $(MAKEINFO) $(MAKEINFOFLAGS) ${manual_texi}
1091 $(STAMP) stamp-info-docbook
1092
1093doc-texinfo-docbook: stamp-texinfo-docbook
1094
1095doc-info-docbook: stamp-info-docbook
1096stamp-epub-docbook: stamp-xml-single-docbook ${docbook_outdir}/epub
1097 @echo "Generating epub files..."
696d4bc1
BK
1098 if [ ! -d "${docbook_outdir}/images" ]; then \
1099 $(LN_S) ${top_srcdir}/doc/xml/images ${docbook_outdir}/; \
1100 fi
43fe49ec
BK
1101 $(XSLTPROC) $(XSLT_PARAM) $(XSLT_FLAGS) \
1102 --stringparam base.dir "${docbook_outdir}/epub/OEBPS/" \
1103 $(XSL_EPUB_STYLE) ${top_srcdir}/doc/xml/spine.xml
1104 $(INSTALL_DATA) $(xml_images) ${docbook_outdir}/epub/OEBPS/images
1105 zip -X0 ${manual_epub} ${docbook_outdir}/epub/mimetype
1106 zip -r -X9 ${manual_epub} ${docbook_outdir}/epub/META-INF ${docbook_outdir}/epub/OEBPS
b25e6b79
BK
1107 $(STAMP) stamp-epub-docbook
1108
1109doc-epub-docbook: stamp-epub-docbook
154c4a08 1110doc-svg-performance: ${docbook_outdir}/xml
03a32789 1111 -@(chmod + ${doc_performance_script}; \
154c4a08
BK
1112 ${doc_performance_script} \
1113 ${top_srcdir}/testsuite/data/make_graph_test_infos.xml \
03a32789 1114 ${glibcxx_builddir}/testsuite \
154c4a08 1115 ${glibcxx_builddir}/doc/docbook/xml/images)
8a165db0 1116
c4e82de9 1117.PHONY: doc-doxygen-html doc-doxygen-man doc-performance
4312e020
BK
1118
1119# To remove directories.
1120clean-local:
b25e6b79 1121 rm -rf man html pdf fo xml doxygen docbook ./libstdc++-* db2t*
5213506e 1122
4312e020
BK
1123# Tell versions [3.59,3.63) of GNU make to not export all variables.
1124# Otherwise a system limit (for SysV at least) may be exceeded.
1125.NOEXPORT: