gbranden pushed a commit to branch master in repository groff. commit e0e70c4bc3c4b9d548c02f7313d55be4ed16318f Author: G. Branden Robinson <g.branden.robin...@gmail.com> AuthorDate: Wed Jul 9 03:40:26 2025 -0500
doc/doc.am: Loosen "install" dependencies. * doc/doc.am: Rationalize Texinfo document installation targets. (install-txt-local) (install-info-local) (install-dvi-local) (install-pdf-local) (install-html-local): Name as prerequisites (only) the macros conditionally populated when `HAVE_MAKEINFO` and `USE_TEX` are defined. Thus we (re)build each document only if we can actually do so. If not, the user gets the "stock" version from distribution archive. --- ChangeLog | 13 +++++++++++++ doc/doc.am | 15 ++++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e257dcd2..56fd3aeac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2025-07-09 G. Branden Robinson <g.branden.robin...@gmail.com> + + * doc/doc.am: Rationalize Texinfo document installation targets. + (install-txt-local) + (install-info-local) + (install-dvi-local) + (install-pdf-local) + (install-html-local): Name as prerequisites (only) the macros + conditionally populated when `HAVE_MAKEINFO` and `USE_TEX` are + defined. Thus we (re)build each document only if we can + actually do so. If not, the user gets the "stock" version from + distribution archive. + 2025-07-09 G. Branden Robinson <g.branden.robin...@gmail.com> * doc/doc.am: Trivially refactor. Rename `install_infodoc` diff --git a/doc/doc.am b/doc/doc.am index d389399c0..6827c7ab9 100644 --- a/doc/doc.am +++ b/doc/doc.am @@ -676,9 +676,14 @@ maintainer-clean-local: # Generated forms of the groff Texinfo manual might be in the source # directory (distribution archive build) or in the build directory (Git # repository build). +# +# Targets that do the work have a macro prerequisite that is empty if +# build-time dependencies for regenerating the document are unavailable; +# thus we (re)build the document only if we can actually do so. If not, +# the user gets the "stock" version from distribution archive. install-data-local: install-txt-local -install-txt-local: +install-txt-local: $(GROFF_TXT) -test -d $(DESTDIR)$(docdir) \ || $(mkinstalldirs) $(DESTDIR)$(docdir) for d in $(doc_builddir) $(doc_srcdir); do \ @@ -689,7 +694,7 @@ install-txt-local: done install-data-local: install-info-local -install-info-local: doc/groff.info +install-info-local: $(GROFF_INFO) -test -d $(DESTDIR)$(infodir) \ || $(mkinstalldirs) $(DESTDIR)$(infodir) $(RM) $(DESTDIR)/doc/groff.info* @@ -702,7 +707,7 @@ install-info-local: doc/groff.info fi; \ done -install-dvi-local: doc/groff.dvi +install-dvi-local: $(GROFF_DVI) -test -d $(DESTDIR)$(docdir) \ || $(mkinstalldirs) $(DESTDIR)$(docdir) for d in $(doc_builddir) $(doc_srcdir); do \ @@ -712,7 +717,7 @@ install-dvi-local: doc/groff.dvi fi; \ done -install-pdf-local: doc/groff.pdf +install-pdf-local: $(GROFF_PDF) -test -d $(DESTDIR)$(pdfdocdir) \ || $(mkinstalldirs) $(DESTDIR)$(pdfdocdir) for d in $(doc_builddir) $(doc_srcdir); do \ @@ -722,7 +727,7 @@ install-pdf-local: doc/groff.pdf fi; \ done -install-html-local: doc/groff.html +install-html-local: $(GROFF_HTML) -test -d $(DESTDIR)$(htmldocdir)/groff.html.mono \ || $(mkinstalldirs) $(DESTDIR)$(htmldocdir)/groff.html.mono for d in $(doc_builddir) $(doc_srcdir); do \ _______________________________________________ groff-commit mailing list groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit