support generating multi-html pages in parallel
authorMike Frysinger <vapier@gentoo.org>
Sun, 2 May 2021 16:50:39 +0000 (12:50 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 8 May 2021 16:06:07 +0000 (12:06 -0400)
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.

15 files changed:
bfd/ChangeLog
bfd/doc/Makefile.am
bfd/doc/Makefile.in
binutils/ChangeLog
binutils/doc/Makefile.am
binutils/doc/Makefile.in
gas/ChangeLog
gas/doc/Makefile.am
gas/doc/Makefile.in
gprof/ChangeLog
gprof/Makefile.am
gprof/Makefile.in
ld/ChangeLog
ld/Makefile.am
ld/Makefile.in

index 77bec4440b31fa735daf9ed004136169d464ba00..376e8fd540ce82d815bdae2c8973df8ea81b65ff 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * doc/Makefile.am (html-local, bfd/index.html): New targets.
+       * doc/Makefile.in: Regenerate.
+
 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
 
        * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
index 22bb654b906ffd0d7b4a0a2088663253748bb436..631e6abea6186ed4cc1156c8d4bbaf89c36adfdd 100644 (file)
@@ -369,4 +369,9 @@ MAINTAINERCLEANFILES = $(DOCFILES)
 # cygnus option.
 install: install-info
 
+html-local: bfd/index.html
+bfd/index.html: bfd.texi $(bfd_TEXINFOS)
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/bfd.texi
+
 MAINTAINERCLEANFILES += bfd.info
index ab3efe9f3fae558f4fcea793f0b74cd3c4ab26fe..0724b77826dfa9036e150b3aa77f58af58858181 100644 (file)
@@ -765,7 +765,7 @@ dvi-am: $(DVIS)
 
 html: html-am
 
-html-am: $(HTMLS)
+html-am: $(HTMLS) html-local
 
 info: info-am
 
@@ -916,12 +916,12 @@ uninstall-am: uninstall-dvi-am uninstall-html-am uninstall-info-am \
 .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 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-pdf install-pdf-am \
-       install-ps install-ps-am install-strip installcheck \
-       installcheck-am installdirs maintainer-clean \
+       html-am html-local info info-am 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-pdf \
+       install-pdf-am install-ps install-ps-am install-strip \
+       installcheck installcheck-am installdirs maintainer-clean \
        maintainer-clean-aminfo maintainer-clean-generic mostlyclean \
        mostlyclean-aminfo mostlyclean-generic mostlyclean-libtool pdf \
        pdf-am ps ps-am tags-am uninstall uninstall-am \
@@ -1168,6 +1168,11 @@ bfdver.texi: $(srcdir)/Makefile.in
 # cygnus option.
 install: install-info
 
+html-local: bfd/index.html
+bfd/index.html: bfd.texi $(bfd_TEXINFOS)
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/bfd.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:
index bef66bf9e50476f2c2836149515c8ab1667685f9..2c6b42717302846e6754ef83c1802ca86d0e3c07 100644 (file)
@@ -1,3 +1,8 @@
+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.
index eb42b238f4efe91cc5180757fb70d0de217fbcef..ba53f92560bb5c629a2fdc1f1a9cb1d41c462da9 100644 (file)
@@ -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.
index 681eff3fb44057b8b2b6c5d8c81c02c5f6940d82..024a642e79942876c5563ecde9098e6841e0100b 100644 (file)
@@ -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.
index 60ea990f1fa52999413c01ebc211e3968d04b09c..5892659c9052982caf6fb0c15d8f84b9f33a7ad5 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * doc/Makefile.am (html-local, as/index.html): New targets.
+       * doc/Makefile.in: Regenerate.
+
 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
 
        * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
index 34ff5d5b543754fc50766580ba3a4f8c67649425..f2c6654e89da14bf6e887dfbbfc4885778c3dd80 100644 (file)
@@ -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
index 369f74f3188a31106007eb363b1fad90705d2c97..89d2ca067eb45902cf8aec5d76698deb4f723855 100644 (file)
@@ -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:
index e8fc312b1ec754ff5ee0fb87569d087b5a10118c..24deb11f95b3bcdd5a88e9d5bd2ce82c737871ee 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (html-local, doc/gprof/index.html): New targets.
+       * Makefile.in: Regenerate.
+
 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
index 4ed2f29584e2a4cfe7e88fea0a6c7bde34e07aa2..5a2670753832e0c29ebb03b055d36a63e5ea4ac3 100644 (file)
@@ -103,4 +103,10 @@ gprof.1: $(srcdir)/gprof.texi config.texi
               (rm -f $@.T$$$$ && exit 1)
        rm -f gprof.pod
 
+html-local: doc/gprof/index.html
+doc/gprof/index.html: gprof.texi $(gprof_TEXINFOS)
+       $(MKDIR_P) doc
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/gprof.texi -o doc/gprof
+
 MAINTAINERCLEANFILES = gprof.info
index b40040684d643f48f27df2961b1443e8806aff44..0f766a3660c6415e965daca2bd1453896aa0b40a 100644 (file)
@@ -992,7 +992,7 @@ dvi-am: $(DVIS)
 
 html: html-recursive
 
-html-am: $(HTMLS)
+html-am: $(HTMLS) html-local
 
 info: info-recursive
 
@@ -1152,14 +1152,14 @@ uninstall-man: uninstall-man1
        clean-binPROGRAMS clean-cscope clean-generic clean-libtool \
        cscope cscopelist-am ctags ctags-am dist-info distclean \
        distclean-compile distclean-generic distclean-hdr \
-       distclean-libtool distclean-tags dvi dvi-am html html-am info \
-       info-am install install-am install-binPROGRAMS 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 install-pdf \
-       install-pdf-am install-ps install-ps-am install-strip \
-       installcheck installcheck-am installdirs installdirs-am \
-       maintainer-clean maintainer-clean-aminfo \
+       distclean-libtool distclean-tags dvi dvi-am html html-am \
+       html-local info info-am install install-am install-binPROGRAMS \
+       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 \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       installdirs-am maintainer-clean maintainer-clean-aminfo \
        maintainer-clean-generic mostlyclean mostlyclean-aminfo \
        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
        pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
@@ -1198,6 +1198,12 @@ gprof.1: $(srcdir)/gprof.texi config.texi
               (rm -f $@.T$$$$ && exit 1)
        rm -f gprof.pod
 
+html-local: doc/gprof/index.html
+doc/gprof/index.html: gprof.texi $(gprof_TEXINFOS)
+       $(MKDIR_P) doc
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/gprof.texi -o doc/gprof
+
 # 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:
index b8b5c188f896c95c890bdaa405b72a2d2c62a56a..b7a6adc372a0a8db7ebcd8110272341fd81ea55f 100644 (file)
@@ -1,3 +1,8 @@
+2021-05-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * Makefile.am (html-local, doc/ld/index.html): New targets.
+       * Makefile.in: Regenerate.
+
 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
 
        * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
index cb90dae53139920062951b6f6bf582123bae3ffb..0314a58a5a36d463a9330b52a0243d924434a891 100644 (file)
@@ -1093,6 +1093,12 @@ diststuff: info $(EXTRA_DIST)
 # ld.1 to support parallel build.
 info-recursive: ld.1
 
+html-local: doc/ld/index.html
+doc/ld/index.html: ld.texi $(ld_TEXINFOS)
+       $(MKDIR_P) doc
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/ld.texi -o doc/ld
+
 DISTCLEANFILES = site.exp development.exp enablings.exp site.bak stringify.sed
 distclean-local:
        rm -rf ldscripts
index b654700045f6d977a6a53702c0b307885e0b7c61..211e62000a75a6df76353050631587d19600f02c 100644 (file)
@@ -2013,7 +2013,7 @@ dvi-am: $(DVIS)
 
 html: html-recursive
 
-html-am: $(HTMLS)
+html-am: $(HTMLS) html-local
 
 info: info-recursive
 
@@ -2176,12 +2176,12 @@ uninstall-man: uninstall-man1
        cscopelist-am ctags ctags-am dist-info distclean \
        distclean-DEJAGNU distclean-compile distclean-generic \
        distclean-hdr distclean-libtool distclean-local distclean-tags \
-       dvi dvi-am html html-am info info-am install install-am \
-       install-bfdpluginLTLIBRARIES install-binPROGRAMS install-data \
-       install-data-am install-data-local install-dvi install-dvi-am \
-       install-exec install-exec-am install-exec-local install-html \
-       install-html-am install-info install-info-am install-man \
-       install-man1 install-pdf install-pdf-am install-ps \
+       dvi dvi-am html html-am html-local info info-am install \
+       install-am install-bfdpluginLTLIBRARIES install-binPROGRAMS \
+       install-data install-data-am install-data-local install-dvi \
+       install-dvi-am install-exec install-exec-am install-exec-local \
+       install-html install-html-am install-info install-info-am \
+       install-man install-man1 install-pdf install-pdf-am install-ps \
        install-ps-am install-strip installcheck installcheck-am \
        installdirs installdirs-am maintainer-clean \
        maintainer-clean-aminfo maintainer-clean-generic mostlyclean \
@@ -2686,6 +2686,12 @@ diststuff: info $(EXTRA_DIST)
 # But info isn't a direct target. Make info-recursive to depend on
 # ld.1 to support parallel build.
 info-recursive: ld.1
+
+html-local: doc/ld/index.html
+doc/ld/index.html: ld.texi $(ld_TEXINFOS)
+       $(MKDIR_P) doc
+       $(AM_V_at)$(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) \
+         --split=node -I$(srcdir) $(srcdir)/ld.texi -o doc/ld
 distclean-local:
        rm -rf ldscripts