Update of bug #68576 (group groff):

                  Status:                    None => In Progress
             Assigned to:                    None => gbranden
         Planned Release:                    None => 1.25.0
                 Summary: doc/automake.mom: declares excessive make(1)
prerequisites => [PATCH] doc/doc.am: "doc/automake.mom" target declares
excessive make(1) prerequisites

    _______________________________________________________

Follow-up Comment #1:

Seems straightforward and works fine in a "dev box" environment.

Will test in a brutally stripped-down environment before pushing.


diff --git a/doc/doc.am b/doc/doc.am
index be3c533f8..2418b4731 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -41,6 +41,15 @@ DOC_GROFF = \
   GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
   $(GROFFBIN) $(MFLAG) $(FFLAG) -ww -b
 
+# We need a separate macro for running groff with `-mom`, because (a)
+# mom(7)'s macro package is in "contrib/", not "tmac/", and (b) that
+# package is not "`-ww`-clean".
+DOC_GROFF_MOM = \
+  GROFF_COMMAND_PREFIX= \
+  GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
+  $(GROFFBIN) -M$(abs_top_srcdir)/contrib/mom $(MFLAG) $(FFLAG) \
+  -mom -wall -b
+
 # There's no point crashing the build due to fonts being unavailable for
 # embedding (or selection, even, when their metrics are missing) if we
 # knew at configuration time that the venture wouldn't come off.
@@ -143,7 +152,8 @@ EXTRA_DIST += $(DOCFILES_NOINST)
 EXTRA_DIST += doc/automake.mom
 docpdfdocdir = $(pdfdocdir)
 nodist_docpdfdoc_DATA = $(PROCESSEDDOCFILES_PDF)
-doc/automake.pdf: doc/automake.mom pdfmom $(TMAC_PACKAGE_MOM)
+doc/automake.pdf: doc/automake.mom $(TMAC_PACKAGE_MOM)
+       $(GROFF_V)$(DOC_GROFF_MOM) -Tpdf $(doc_srcdir)/automake.mom >$@
 
 # GNU PIC html documentation, installed in $(htmldocdir)
 # Other pic*.html files are installed by the local rule




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68576>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to