gbranden pushed a commit to branch master
in repository groff.

commit c0122c403a41a9371b226894e992140289eb6deb
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Oct 23 14:06:16 2025 -0500

    [mom]: Build example PDFs more carefully.
    
    * contrib/mom/mom.am (MOMPDFMOM): Add environment variable
      `GROFF_COMMAND`, newly recognized by pdfmom(1), to make it run the
      build tree's groff via "test-groff", rather than (potentially) a
      "groff" in the build environment's $PATH.
    
      ($(MOMPROCESSEDEXAMPLEFILES)): Add dependency on "test-groff" script,
      now required to generate the targets stored in this macro.
---
 contrib/mom/ChangeLog | 10 ++++++++++
 contrib/mom/mom.am    |  5 +++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/contrib/mom/ChangeLog b/contrib/mom/ChangeLog
index 6d81f259b..abea8ab52 100644
--- a/contrib/mom/ChangeLog
+++ b/contrib/mom/ChangeLog
@@ -1,3 +1,13 @@
+2025-10-23  G. Branden Robinson <[email protected]>
+
+       * mom.am (MOMPDFMOM): Add environment variable `GROFF_COMMAND`,
+       newly recognized by pdfmom(1), to make it run the build tree's
+       groff via "test-groff", rather than (potentially) a "groff" in
+       the build environment's $PATH.
+       ($(MOMPROCESSEDEXAMPLEFILES)): Add dependency on "test-groff"
+       script, now required to generate the targets stored in this
+       macro.
+
 2025-07-04  G. Branden Robinson <[email protected]>
 
        * mom.am (MOMPDFMOM): Append `-P -W` to `pdfmom` arguments.
diff --git a/contrib/mom/mom.am b/contrib/mom/mom.am
index 2c5de6fbc..7b86ab67b 100644
--- a/contrib/mom/mom.am
+++ b/contrib/mom/mom.am
@@ -24,6 +24,7 @@ mom_srcdir = $(top_srcdir)/contrib/mom
 #
 # Use '-K utf8', not '-k', in case 'configure' didn't find uchardet.
 MOMPDFMOM = \
+  GROFF_COMMAND=test-groff \
   GROFF_COMMAND_PREFIX= \
   GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
   $(PDFMOMBIN) $(FFLAG) $(MFLAG) -M$(mom_srcdir) -K utf8 -p -e -t \
@@ -147,8 +148,8 @@ SUFFIXES += .mom .pdf
        && LC_ALL=C $(MOMPDFMOM) $< >$@
 
 $(MOMPROCESSEDEXAMPLEFILES): $(MOMNORMALFILES) \
-  groff troff gropdf pdfmom penguin.ps penguin.pdf font/devpdf/stamp \
-  tmac/pdf.tmac
+  test-groff groff troff gropdf pdfmom penguin.ps penguin.pdf \
+  font/devpdf/stamp tmac/pdf.tmac
 
 penguin.ps:
        $(AM_V_at)cp $(mom_srcdir)/examples/penguin.ps $@

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

Reply via email to