summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-05-02 12:50:39 -0400
committerMike Frysinger <vapier@gentoo.org>2021-05-08 12:06:07 -0400
commitcf758b396026089fe2684afcc5ccd6bd3b7923c0 (patch)
tree33fabd3035b892bf46d4f565575866ce5c62bdd0 /binutils
parent2faf902da5109e31ad08d84a24f827f0e6f60dc4 (diff)
support generating multi-html pages in parallel
Use the pattern from other projects where we generate the html pages in a dir named the same as the project. So now we have: gas/doc/gas.html - single html page gas/doc/gas/ - multiple html pages This works for projects that have a doc/ subdir already, but gprof & ld require a little tweaking since they generate their docs in their respective toplevels.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/doc/Makefile.am5
-rw-r--r--binutils/doc/Makefile.in9
3 files changed, 17 insertions, 2 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index bef66bf9e5..2c6b427173 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,10 @@
2021-05-08 Mike Frysinger <vapier@gentoo.org>
+ * doc/Makefile.am (html-local, binutils/index.html): New targets.
+ * doc/Makefile.in: Regenerate.
+
+2021-05-08 Mike Frysinger <vapier@gentoo.org>
+
* doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
* doc/Makefile.in: Regenerate.
diff --git a/binutils/doc/Makefile.am b/binutils/doc/Makefile.am
index eb42b238f4..ba53f92560 100644
--- a/binutils/doc/Makefile.am
+++ b/binutils/doc/Makefile.am
@@ -175,6 +175,11 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefile
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
> $(DEMANGLER_NAME).1
+html-local: binutils/index.html
+binutils/index.html: binutils.texi $(binutils_TEXINFOS)
+ $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+ --split=node -I$(srcdir) $(srcdir)/binutils.texi
+
# Maintenance
# We need it for the taz target in ../../Makefile.in.
diff --git a/binutils/doc/Makefile.in b/binutils/doc/Makefile.in
index 681eff3fb4..024a642e79 100644
--- a/binutils/doc/Makefile.in
+++ b/binutils/doc/Makefile.in
@@ -745,7 +745,7 @@ dvi-am: $(DVIS)
html: html-am
-html-am: $(HTMLS)
+html-am: $(HTMLS) html-local
info: info-am
@@ -898,7 +898,7 @@ uninstall-man: uninstall-man1
.PHONY: all all-am check check-am clean clean-aminfo clean-generic \
clean-libtool cscopelist-am ctags-am dist-info distclean \
distclean-generic distclean-libtool distdir dvi dvi-am html \
- html-am info info-am info-local install install-am \
+ html-am html-local info info-am info-local install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-man1 \
@@ -1030,6 +1030,11 @@ $(DEMANGLER_NAME).1: cxxfilt.man Makefile
-e 's/cxxfilt/$(DEMANGLER_NAME)/' < $$man \
> $(DEMANGLER_NAME).1
+html-local: binutils/index.html
+binutils/index.html: binutils.texi $(binutils_TEXINFOS)
+ $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+ --split=node -I$(srcdir) $(srcdir)/binutils.texi
+
# Maintenance
# We need it for the taz target in ../../Makefile.in.