Here's the fix.

diff --git a/ChangeLog b/ChangeLog
index c8a90c49f..4df1db766 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2026-02-21  G. Branden Robinson <[email protected]>
+
+       * doc/doc.am (doc/webpage.html): Also pass `$(doc_builddir)` as
+       an `-I` option argument to groff, just as we do in the
+       "doc/webpage.ps" target.
+
+       Thanks to Bjarni Ingi Gislason for the report in <https://\
+       lists.gnu.org/archive/html/groff/2026-02/msg00081.html> and Deri
+       James for the analysis in <https://lists.gnu.org/archive/html/\
+       groff/2026-02/msg00087.html>.
+
 2026-02-20  G. Branden Robinson <[email protected]>
 
        [gropdf]: Regression-test Savannah #68077.
diff --git a/doc/doc.am b/doc/doc.am
index d5a0c9eaf..de9f90581 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -416,9 +416,9 @@ doc/webpage.html: $(DOC_GNU_EPS) 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) \
-       && $(DOC_GROFF) -t -I $(doc_srcdir) -P-jdoc/webpage -P-nrb \
-         -P-Iwebpage -P-Ddoc/img -Thtml -ms $(doc_srcdir)/webpage.ms \
-         > [email protected] \
+       && $(DOC_GROFF) -t -I $(doc_srcdir) -I $(doc_builddir) \
+         -P-jdoc/webpage -P-nrb -P-Iwebpage -P-Ddoc/img -Thtml -ms \
+         $(doc_srcdir)/webpage.ms > [email protected] \
          && mv [email protected] $@
 
 # We remove groff.css only from an out-of-source build tree.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

Reply via email to