From 0b4cbd2fb82ba588a82c148bd723e46dea05d523 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 24 Jun 2016 21:50:15 +0100 Subject: Make newlib manpages (v3) Add makedocbook, a tool to process makedoc markup and output DocBook XML refentries. Process all the source files which are processed with makedoc with makedocbook as well Add chapter-texi2docbook, a tool to automatically generate DocBook XML chapter files from the chapter .texi files. For generating man pages all we care about is the content of the refentries, so all this needs to do is convert the @include of the makedoc generated .def files to xi:include of the makedocbook generated .xml files. Add skeleton Docbook XML book files, lib[cm].in.xml which include these generated chapters, which in turn include the generated files containing refentries, which is processed with xsltproc to generate the lib[cm].xml Add new make targets to generate and install man pages from lib[cm].xml --- newlib/Makefile.am | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'newlib/Makefile.am') diff --git a/newlib/Makefile.am b/newlib/Makefile.am index 200bc61..ee58007 100644 --- a/newlib/Makefile.am +++ b/newlib/Makefile.am @@ -362,6 +362,21 @@ dvi-recursive: doc/makedoc doc/makedoc: cd doc && $(MAKE) all +# Recursive targets for man and install-man +man: + for d in $(SUBDIRS); do \ + if test "$$d" != "."; then \ + (cd $$d && $(MAKE) man) || exit 1; \ + fi; \ + done + +install-man: + for d in $(SUBDIRS); do \ + if test "$$d" != "."; then \ + (cd $$d && $(MAKE) install-man) || exit 1; \ + fi; \ + done + CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host # Multilib support. -- cgit v1.1