aboutsummaryrefslogtreecommitdiff
path: root/newlib/doc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-21 22:50:42 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-05 00:17:54 -0500
commit6026ef29d8c847716a745bb6e11aa1d2c36a2b64 (patch)
tree40480f5dca7020ed9a6aaa762e4faede55b1cf8d /newlib/doc
parentfc2b4ffee0ec7697a02ae7185f1acb7927f2f115 (diff)
downloadnewlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.zip
newlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.tar.gz
newlib-6026ef29d8c847716a745bb6e11aa1d2c36a2b64.tar.bz2
newlib: move man page generation into top-level build
This allows building the libc & libm pages in parallel, and drops the duplication in the subdirs with the chew/chapter settings. The unused rules in Makefile.shared are left in place to minimize noise in the change.
Diffstat (limited to 'newlib/doc')
-rw-r--r--newlib/doc/local.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/doc/local.mk b/newlib/doc/local.mk
index 5c867c9..15c43f2 100644
--- a/newlib/doc/local.mk
+++ b/newlib/doc/local.mk
@@ -29,3 +29,15 @@ CHEW = $(MKDOC) -f $(srcdir)/%D%/doc.str
.c.def:
$(AM_V_GEN)$(CHEW) < $< > $*.def || ( rm $*.def && false )
+
+SUFFIXES += .xml
+
+DOCBOOK_CHEW = ${top_srcdir}/%D%/makedocbook.py
+
+.c.xml:
+ $(AM_V_GEN)$(DOCBOOK_CHEW) < $< > $*.xml || ( rm $*.xml && false )
+
+# We can't use .tex.xml rule here as it'll conflict with .c.xml when the chapter
+# name (e.g. "stdio.xml") matches a source file name (e.g. "stdio.c"). We've
+# been flattening chapters into the main library dir (e.g. libc/) to avoid that.
+TEXI2DOCBOOK = $(top_srcdir)/%D%/chapter-texi2docbook.py