Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/Makefile.in')
-rw-r--r--newlib/libc/Makefile.in25
1 files changed, 22 insertions, 3 deletions
diff --git a/newlib/libc/Makefile.in b/newlib/libc/Makefile.in
index cbddc5fdf..509fdb63d 100644
--- a/newlib/libc/Makefile.in
+++ b/newlib/libc/Makefile.in
@@ -427,6 +427,9 @@ SUBDEFS = \
$(LIBC_EXTRA_DEF) \
misc/stmp-def
+
+# ditto for stmp-xml files in each subdirectory which builds .xml files
+SUBXMLS = $(SUBDEFS:stmp-def=stmp-xml)
info_TEXINFOS = libc.texinfo
libc_TEXINFOS = sigset.texi extra.texi posix.texi stdio64.texi iconvset.texi \
targetdep.tex $(SUBDEFS)
@@ -435,7 +438,8 @@ CLEANFILES = $(CRT0) \
sigset.texi stmp-sigset extra.texi stmp-extra \
stdio64.texi stmp-stdio64 targetdep.tex stmp-targetdep \
tmp-sigset.texi tmp-iconvset.texi tmp-extra.texi \
- tmp-stdio64.texi tmp-posix.texi tmp-targetdep.texi
+ tmp-stdio64.texi tmp-posix.texi tmp-targetdep.texi \
+ *.xml *.3
ACLOCAL_AMFLAGS = -I .. -I ../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
@@ -941,8 +945,6 @@ install-info-am: $(INFO_DEPS)
install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
done; \
else : ; fi
-install-man:
-
install-pdf: install-pdf-recursive
install-pdf-am: $(PDFS)
@@ -1118,6 +1120,23 @@ targetdep.tex: stmp-targetdep ; @true
$(SUBDEFS): stmp-targetdep ; @true
+docbook-recursive: force
+ for d in $(SUBDIRS); do \
+ if test "$$d" != "."; then \
+ (cd $$d && $(MAKE) docbook) || exit 1; \
+ fi; \
+ done
+
+$(SUBXMLS): docbook-recursive
+
+man: $(SUBXMLS) libc.in.xml
+ xsltproc --xinclude --path ${builddir} --nonet ${srcdir}/../refcontainers.xslt ${srcdir}/libc.in.xml >libc.xml
+ xmlto --skip-validation man -m ${srcdir}/../man.xsl libc.xml
+
+install-man: man
+ mkdir -p $(DESTDIR)$(mandir)/man3
+ $(INSTALL_DATA) *.3 $(DESTDIR)$(mandir)/man3
+
.PHONY: force
force: