gbranden pushed a commit to branch master
in repository groff.
commit 325c1c714c9fcc73633971effa6993d6efe06b52
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Jul 4 20:09:30 2026 -0500
doc/doc.am: Clean temporary files.
* doc/doc.am: Move definition of `DOC_LL` macro earlier...
(mostlyclean_doc): ...and use it here to scrub temporary files
produced by the later maintainer-mode `$(DOC_LINE_LAYOUT_EPS)` target.
---
ChangeLog | 7 +++++++
doc/doc.am | 7 ++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 3942e4ae4..f660f625d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-07-04 G. Branden Robinson <[email protected]>
+
+ * doc/doc.am: Move definition of `DOC_LL` macro earlier...
+ (mostlyclean_doc): ...and use it here to scrub temporary files
+ produced by the later maintainer-mode `$(DOC_LINE_LAYOUT_EPS)`
+ target.
+
2026-07-03 G. Branden Robinson <[email protected]>
* doc/doc.am (install-info-local): Clean out any existing groff
diff --git a/doc/doc.am b/doc/doc.am
index d2463fd0f..5f0ccbcc4 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -432,6 +432,9 @@ doc/webpage.html: $(doc_srcdir)/webpage.ms
$(TMAC_PACKAGE_MS)
$(doc_srcdir)/webpage.ms > webpage.html.tmp
$(AM_V_at)mv [email protected] $@
+# XXX: ugly, but DRY
+DOC_LL=line-layout
+
# We remove groff.css, groff.{html,html.node,info,pdf,texi,txt}, and
# {gnu,line-layout}.{eps,png} only from an out-of-source build tree.
mostlyclean-local: mostlyclean_doc
@@ -448,6 +451,7 @@ mostlyclean_doc:
$(top_builddir)/$(DOC_LINE_LAYOUT_PNG); \
$(RM) -r $(GROFF_HTML).node; \
fi
+ $(RM) doc/$(DOC_LL).ps doc/$(DOC_LL).bbox
if HAVE_TEXI2DVI
if USE_TEX
$(RM) -r doc/groff.dvi.t2d doc/groff.pdf.t2p
@@ -893,9 +897,6 @@ $(DOC_GNU_PNG): doc/gnu.xpm
fi; \
xpmtoppm $(top_srcdir)/doc/gnu.xpm | pnmtopng >$@
-# XXX: ugly, but DRY
-DOC_LL=line-layout
-
$(DOC_LINE_LAYOUT_EPS): doc/line-layout.roff pic groff troff grops \
font/devps/stamp
$(AM_V_GEN)$(MKDIR_P) `dirname $@` \
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit