gbranden pushed a commit to branch master
in repository groff.
commit d9d48ad97ad4aa93b85c9eb664f9a344cb3cb1de
Author: G. Branden Robinson <[email protected]>
AuthorDate: Tue Sep 2 14:06:28 2025 -0500
doc/doc.am: Trivially refactor.
* doc/doc.am (DOC_GROFF): Move `-M` option that is present only
for the sake of building "grnexampl.ps" from this macro...
(doc/grnexampl.ps): ...to this target rule.
---
ChangeLog | 6 ++++++
doc/doc.am | 8 ++++----
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 28e4f450a..cc2c06f7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-02 G. Branden Robinson <[email protected]>
+
+ * doc/doc.am (DOC_GROFF): Move `-M` option that is present only
+ for the sake of building "grnexampl.ps" from this macro...
+ (doc/grnexampl.ps): ...to this target rule.
+
2025-09-02 G. Branden Robinson <[email protected]>
Drop `GROFF_ISC_SYSV3` Autoconf macro. ISC Unix has been end-
diff --git a/doc/doc.am b/doc/doc.am
index c276ecf06..4881741c1 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -34,12 +34,10 @@ DOC_SED = $(SED) \
# It includes flags to locate its tmac and device/font description
# directories and to produce verbose diagnostics in the event of syntax
# or formatting problems.
-#
-# `-M $(doc_srcdir)` is so that grn can find "grnexampl.g".
DOC_GROFF = \
GROFF_COMMAND_PREFIX= \
GROFF_BIN_PATH="$(GROFF_BIN_PATH)" \
- $(GROFFBIN) -M $(doc_srcdir) $(MFLAG) $(FFLAG) -ww -b
+ $(GROFFBIN) $(MFLAG) $(FFLAG) -ww -b
DOC_PDFMOM = \
GROFF_COMMAND_PREFIX= \
@@ -296,10 +294,12 @@ doc/groff-man-pages.utf8.txt: $(GROFF_MAN_PAGES_ALL) eqn
pic tbl \
$(tmac_srcdir)/sv.tmac $(GROFF_MAN_PAGES2) \
$(tmac_srcdir)/en.tmac $(GROFF_MAN_PAGES3) > $@
+# `-M $(doc_srcdir)` is so that grn can find "grnexampl.g".
doc/grnexmpl.ps: $(doc_srcdir)/grnexmpl.me $(doc_srcdir)/grnexmpl.g \
$(TMAC_PACKAGE_ME) grn eqn
$(GROFF_V)$(MKDIR_P) `dirname $@` \
- && $(DOC_GROFF) -Tps -ge -me $(doc_srcdir)/grnexmpl.me >$@
+ && $(DOC_GROFF) -Tps -ge -M $(doc_srcdir) -me \
+ $(doc_srcdir)/grnexmpl.me >$@
# Generating *.me from *.me.in is, surprisingly, a challenge.
# 1. A pattern rule ("%.me: %.me.in") is not portable to NetBSD or
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit