From cf758b396026089fe2684afcc5ccd6bd3b7923c0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 2 May 2021 12:50:39 -0400 Subject: 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. --- gas/doc/Makefile.am | 5 +++++ gas/doc/Makefile.in | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'gas/doc') diff --git a/gas/doc/Makefile.am b/gas/doc/Makefile.am index 34ff5d5..f2c6654 100644 --- a/gas/doc/Makefile.am +++ b/gas/doc/Makefile.am @@ -133,4 +133,9 @@ as.1: $(srcdir)/as.texi asconfig.texi $(CPU_DOCS) (rm -f $@.T$$$$ && exit 1) rm -f as.pod +html-local: as/index.html +as/index.html: as.texi $(as_TEXINFOS) + $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ + --split=node -I$(srcdir) $(srcdir)/as.texi + MAINTAINERCLEANFILES += as.info diff --git a/gas/doc/Makefile.in b/gas/doc/Makefile.in index 369f74f..89d2ca0 100644 --- a/gas/doc/Makefile.in +++ b/gas/doc/Makefile.in @@ -772,7 +772,7 @@ dvi-am: $(DVIS) html: html-am -html-am: $(HTMLS) +html-am: $(HTMLS) html-local info: info-am @@ -925,7 +925,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-data-local install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ @@ -967,6 +967,11 @@ as.1: $(srcdir)/as.texi asconfig.texi $(CPU_DOCS) (rm -f $@.T$$$$ && exit 1) rm -f as.pod +html-local: as/index.html +as/index.html: as.texi $(as_TEXINFOS) + $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \ + --split=node -I$(srcdir) $(srcdir)/as.texi + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: -- cgit v1.1