forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user