aboutsummaryrefslogtreecommitdiff
path: root/newlib/Makefile.am
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-06-24 21:50:15 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2016-07-04 14:17:10 +0100
commit0b4cbd2fb82ba588a82c148bd723e46dea05d523 (patch)
treefccdea463458c2cb5536c151b839ccfa42795eb5 /newlib/Makefile.am
parent85db21730beb3bb40723fa9b9f2dea5016fc4b4c (diff)
downloadnewlib-0b4cbd2fb82ba588a82c148bd723e46dea05d523.zip
newlib-0b4cbd2fb82ba588a82c148bd723e46dea05d523.tar.gz
newlib-0b4cbd2fb82ba588a82c148bd723e46dea05d523.tar.bz2
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
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 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.