1 info_TEXINFOS += %D%/libc.texi
2 %C%_libc_TEXINFOS = %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)
6 LIBC_CHAPTERS = %D%/sys.tex
7 LIBC_DOCBOOK_OUT_FILES = $(LIBC_CHEWOUT_FILES:.def=.xml)
8 $(LIBC_CHEWOUT_FILES): $(MKDOC)
10 %D%/libc.dvi: %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)
12 %D%/targetdep.tex.stamp: $(LIBC_CHAPTERS)
13 $(AM_V_GEN)cat $^ > $@.tmp
14 $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $(@:.stamp=)
16 %D%/targetdep.tex: %D%/targetdep.tex.stamp; @true
18 %D%/libc.xml: %D%/libc.in.xml $(LIBC_CHAPTERS) $(LIBC_DOCBOOK_OUT_FILES)
20 for chapter in $(LIBC_CHAPTERS); do \
21 $(TEXI2DOCBOOK) < $(srcdir)/$$chapter > %D%/`basename $${chapter%.tex}`.xml || exit 1; \
23 $(AM_V_GEN)xsltproc --xinclude --path $(builddir)/%D% --nonet $(srcdir)/refcontainers.xslt $< > $@.tmp
24 $(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $@
26 %C%_man.stamp: %D%/libc.xml
27 $(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl $(XMLTO_MAN_QUIET) %D%/libc.xml
31 %C%_install-man: %C%_man.stamp
32 $(MKDIR_P) $(DESTDIR)$(mandir)/man3
33 $(INSTALL_DATA) %D%/*.3 $(DESTDIR)$(mandir)/man3/
34 install-man: %C%_install-man
36 ## The order of includes is important for two reasons:
37 ## * The integrated documentation (chapter ordering).
38 ## * Object overridding -- machine dir must come last.
39 ## Do not change the order without considering the doc impact.
41 ## Also keep in mind that every subdir must always be included here. Any
42 ## conditional loigc must live in the respective Makefile.inc files.
43 include %D%/argz/Makefile.inc
44 include %D%/stdlib/Makefile.inc
45 include %D%/ctype/Makefile.inc
46 include %D%/search/Makefile.inc
47 include %D%/stdio/Makefile.inc
48 include %D%/stdio64/Makefile.inc
49 include %D%/string/Makefile.inc
50 include %D%/signal/Makefile.inc
51 include %D%/time/Makefile.inc
52 include %D%/locale/Makefile.inc
53 include %D%/reent/Makefile.inc
54 include %D%/errno/Makefile.inc
55 include %D%/misc/Makefile.inc
56 include %D%/unix/Makefile.inc
57 include %D%/posix/Makefile.inc
58 include %D%/syscalls/Makefile.inc
59 include %D%/iconv/Makefile.inc
60 include %D%/xdr/Makefile.inc
61 include %D%/ssp/Makefile.inc
62 include %D%/sys/Makefile.inc
63 ## NB: Machine must be last! See comment block above.
64 include %D%/machine/Makefile.inc
68 %D%/targetdep.tex.stamp \
69 $(LIBC_CHEWOUT_FILES) \
70 $(LIBC_DOCBOOK_OUT_FILES) \
71 %D%/*.xml %C%_man.stamp %D%/*.3