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:
authorJon Turney <jon.turney@dronecode.org.uk>2016-06-24 23:50:15 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-06-25 19:04:15 +0300
commit041ea4106881a3434e63ca95a38c911515793f09 (patch)
treedd5ee281fad7be281b680f86e8730983e137eb3b /newlib/Makefile.am
parentfdc45c4bfbf382cac03e0b8267771fd7c5f678e6 (diff)
Make newlib manpages via DocBook XML (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
Diffstat (limited to 'newlib/Makefile.am')
-rw-r--r--newlib/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/newlib/Makefile.am b/newlib/Makefile.am
index 200bc61bd..ee580075e 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.