2022-01-22 10:50:20 +08:00
|
|
|
info_TEXINFOS += %D%/libc.texi
|
|
|
|
%C%_libc_TEXINFOS = %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)
|
|
|
|
|
|
|
|
LIBC_CHEWOUT_FILES =
|
|
|
|
|
|
|
|
LIBC_CHAPTERS = %D%/sys.tex
|
2022-01-22 11:50:42 +08:00
|
|
|
LIBC_DOCBOOK_OUT_FILES = $(LIBC_CHEWOUT_FILES:.def=.xml)
|
2022-02-10 12:26:19 +08:00
|
|
|
$(LIBC_CHEWOUT_FILES): $(MKDOC)
|
2022-01-22 10:50:20 +08:00
|
|
|
|
|
|
|
%D%/libc.dvi: %D%/targetdep.tex $(LIBC_CHEWOUT_FILES)
|
|
|
|
|
|
|
|
%D%/targetdep.tex.stamp: $(LIBC_CHAPTERS)
|
|
|
|
$(AM_V_GEN)cat $^ > $@.tmp
|
|
|
|
$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $(@:.stamp=)
|
|
|
|
$(AM_V_at)touch $@
|
|
|
|
%D%/targetdep.tex: %D%/targetdep.tex.stamp; @true
|
|
|
|
|
2022-01-22 11:50:42 +08:00
|
|
|
%D%/libc.xml.stamp: %D%/libc.in.xml $(LIBC_CHAPTERS) $(LIBC_DOCBOOK_OUT_FILES)
|
|
|
|
$(AM_V_at)\
|
|
|
|
for chapter in $(LIBC_CHAPTERS); do \
|
|
|
|
$(TEXI2DOCBOOK) < $(srcdir)/$$chapter > %D%/`basename $${chapter%.tex}`.xml || exit 1; \
|
|
|
|
done
|
|
|
|
$(AM_V_GEN)xsltproc --xinclude --path $(builddir)/%D% --nonet $(srcdir)/refcontainers.xslt $< > $@.tmp
|
|
|
|
$(AM_V_at)$(SHELL) $(newlib_basedir)/../move-if-change $@.tmp $(@:.stamp=)
|
|
|
|
$(AM_V_at)touch $@
|
|
|
|
%D%/libc.xml: %D%/libc.xml.stamp; @true
|
|
|
|
|
|
|
|
%C%_man: %D%/libc.xml
|
|
|
|
$(AM_V_GEN)xmlto --skip-validation -o %D% --searchpath $(builddir)/%D% man -m $(srcdir)/man.xsl %D%/libc.xml
|
|
|
|
man: %C%_man
|
|
|
|
|
|
|
|
%C%_install-man: %C%_man
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(mandir)/man3
|
|
|
|
$(INSTALL_DATA) %D%/*.3 $(DESTDIR)$(mandir)/man3/
|
|
|
|
install-man: %C%_install-man
|
|
|
|
|
2022-02-13 15:44:31 +08:00
|
|
|
## The order of includes is important for two reasons:
|
|
|
|
## * The integrated documentation (chapter ordering).
|
|
|
|
## * Object overridding -- machine dir must come last.
|
|
|
|
## Do not change the order without considering the doc impact.
|
|
|
|
include %D%/argz/Makefile.inc
|
|
|
|
include %D%/stdlib/Makefile.inc
|
2022-01-22 10:50:20 +08:00
|
|
|
include %D%/ctype/Makefile.inc
|
|
|
|
include %D%/search/Makefile.inc
|
|
|
|
include %D%/stdio/Makefile.inc
|
2022-02-13 15:44:31 +08:00
|
|
|
include %D%/stdio64/Makefile.inc
|
2022-01-22 10:50:20 +08:00
|
|
|
include %D%/string/Makefile.inc
|
2022-02-13 15:44:31 +08:00
|
|
|
include %D%/signal/Makefile.inc
|
2022-01-22 10:50:20 +08:00
|
|
|
include %D%/time/Makefile.inc
|
2022-02-13 15:44:31 +08:00
|
|
|
include %D%/locale/Makefile.inc
|
|
|
|
include %D%/reent/Makefile.inc
|
|
|
|
include %D%/errno/Makefile.inc
|
|
|
|
include %D%/misc/Makefile.inc
|
|
|
|
include %D%/unix/Makefile.inc
|
|
|
|
include %D%/posix/Makefile.inc
|
|
|
|
include %D%/syscalls/Makefile.inc
|
|
|
|
include %D%/iconv/Makefile.inc
|
|
|
|
include %D%/xdr/Makefile.inc
|
|
|
|
include %D%/ssp/Makefile.inc
|
|
|
|
include %D%/sys/Makefile.inc
|
|
|
|
include %D%/machine/Makefile.inc
|
2022-01-22 10:50:20 +08:00
|
|
|
|
|
|
|
CLEANFILES += \
|
|
|
|
%D%/targetdep.tex \
|
|
|
|
%D%/targetdep.tex.stamp \
|
2022-01-22 11:50:42 +08:00
|
|
|
$(LIBC_CHEWOUT_FILES) \
|
|
|
|
$(LIBC_DOCBOOK_OUT_FILES) \
|
|
|
|
%D%/*.xml %D%/*.xml.stamp %D%/*.3
|