gbranden pushed a commit to branch master
in repository groff.

commit 135f0e1e1420bf61ea8fef313e369442019a9119
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Oct 1 03:56:58 2026 -0500

    doc/doc.am: Fix *.html generation with BSD Make.
    
    * doc/doc.am (doc/pic.html, doc/webpage.html): Tweak recipes to work
      with BSD Make by using a subshell to run the part of it that requires
      a change of directory (which is in turn due to a limitation in
      grohtml(1)'s `img` element population).
---
 ChangeLog  | 7 +++++++
 doc/doc.am | 8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 068f79cfb..8bea10311 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-10-01  G. Branden Robinson <[email protected]>
+
+       * doc/doc.am (doc/pic.html, doc/webpage.html): Tweak recipes to
+       work with BSD Make by using a subshell to run the part of it
+       that requires a change of directory (which is in turn due to a
+       limitation in grohtml(1)'s `img` element population).
+
 2026-10-01  G. Branden Robinson <[email protected]>
 
        Revise build of man pages to avoid POSIX-unportable make(1)
diff --git a/doc/doc.am b/doc/doc.am
index e85409487..54e11e2aa 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -433,9 +433,9 @@ doc/pic.html: eqn pic tbl
 doc/pic.html: tmac/www.tmac
 doc/pic.html: $(doc_srcdir)/pic.ms $(TMAC_PACKAGE_MS)
        $(GROFF_V)$(MKDIR_P) $(doc_builddir) \
-       && cd $(doc_builddir) \
+       && (cd $(doc_builddir) \
        && $(DOC_GROFF) -pet -P-Ipic -P-Dimg -P-jpic -Thtml -ms \
-         $(doc_srcdir)/pic.ms > pic.html.tmp
+         $(doc_srcdir)/pic.ms > pic.html.tmp)
        $(AM_V_at)mv [email protected] $@
 
 # XXX: See XXX comment before "pic.html" target above.
@@ -448,10 +448,10 @@ doc/webpage.html: $(DOC_GNU_EPS) $(DOC_GNU_PNG) 
tmac/www.tmac tbl
 doc/webpage.html: $(doc_srcdir)/groff.css
 doc/webpage.html: $(doc_srcdir)/webpage.ms $(TMAC_PACKAGE_MS)
        $(GROFF_V)$(MKDIR_P) $(doc_builddir) \
-       && cd $(doc_builddir) \
+       && (cd $(doc_builddir) \
        && $(DOC_GROFF) -t -I $(doc_srcdir) -I $(doc_builddir) \
          -P-jwebpage -P-nrb -P-Iwebpage -P-Dimg -Thtml -ms \
-         $(doc_srcdir)/webpage.ms > webpage.html.tmp
+         $(doc_srcdir)/webpage.ms > webpage.html.tmp)
        $(AM_V_at)mv [email protected] $@
 
 # XXX: ugly, but DRY

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to