Re: webpage.html sometimes doesn't build out-of-tree? (was: error by compiling)

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.general
Message-ID <20260222044727.e6lqidqmb7ss4gxs@illithid>
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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmmailgACgkQ0Z6cfXEm
bc62fg//RuGPvdEEJcOtU11TMtGfBETIE0tpQ3Uonxo2gKEoLUu8jSpuSUWedq58
iId/3fXgl3Y/CFlMvRcrkX6w44qZPFKuhbD+5pCDUIGosl8uIywEiUMfkiC5tuGQ
USeWhwwWpiZPiI2smYPgQRGnHxR731/A5M8ZRCy5d2HBvpNQy6P/2yZAFcferiuZ
5LOghfFGW8vMcq42FNIhnVggm33Qoy9r5XvB6bHTRRHnVZ1z3AXKlWAlBUweh59A
r1VJT0e6iRr8veGEv1Urw/BsQNUPId8ANKC15vJIILX9cOysDZc97O1q/Fqcw5eJ
0PotqPINmmpb1leiZ/nMjsr6MWgQJYKBz2gPutmtJXHzeewvPbskoJwJvfCSGUvU
3z9j2juOh5rXlV75BIuPlGXynMQ9/qVRn1uK9/moWRbSrueOJ6i4XXYgbazZro9z
quAnGk5okSNqANj8b320jc6vvXqOuI9mEgFm/FBu1sNGOjcBzkZjJHPluinPvPAc
uahK1Xv0ZJ2Y+EWIkUlCac+6vsh5f6iOp6RVTD/cOS/nc/iVqIz/O8z7pPKFANQV
bZLZmkNAeFVCNWO6drW+WC/4goceaRhNIpf7bj+svXHU+RPGo/YFvSzwgd7xceOE
g/pzb/DA8fHkWTr15xxhBwH3/SN3sOR1Tl+9sqsID2JaYbzTANg=
=x7ni
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.