aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.am
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 /ld/Makefile.am
parent2faf902da5109e31ad08d84a24f827f0e6f60dc4 (diff)
downloadgdb-cf758b396026089fe2684afcc5ccd6bd3b7923c0.zip
gdb-cf758b396026089fe2684afcc5ccd6bd3b7923c0.tar.gz
gdb-cf758b396026089fe2684afcc5ccd6bd3b7923c0.tar.bz2
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 'ld/Makefile.am')
-rw-r--r--ld/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am
index cb90dae..0314a58 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -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