While updating GNU time, I noticed this snippet doesn't respect
--enable-silent rules and looks a bit off:
$ ./configure --enable-silent-rules && make dist
[...]
GEN gen-ChangeLog
echo '1.9.23-b05d-modified' > time-1.9.23-b05d-modified/.tarball-version
[...]
Most projects, e.g., Coreutils, Grep, etc. use $(AM_V_GEN) like this
patch does. Here is the output:
$ ./configure --enable-silent-rules && make dist
[...]
GEN gen-ChangeLog
GEN dist-hook
[...]
Collin
>From 94994a9376c53f9afe54ba5088bf6d1cb8566b75 Mon Sep 17 00:00:00 2001
Message-ID: <94994a9376c53f9afe54ba5088bf6d1cb8566b75.1768446814.git.collin.fu...@gmail.com>
From: Collin Funk <[email protected]>
Date: Wed, 14 Jan 2026 19:08:05 -0800
Subject: [PATCH] doc: Adjust an example to follow Automake's silent-rules.
* doc/package-version.texi (Setting the package version): Place an
$(AM_V_GEN) before the command invocation.
---
ChangeLog | 6 ++++++
doc/package-version.texi | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a423f2915a..1c8e793625 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-01-14 Collin Funk <[email protected]>
+
+ doc: Adjust an example to follow Automake's silent-rules.
+ * doc/package-version.texi (Setting the package version): Place an
+ $(AM_V_GEN) before the command invocation.
+
2026-01-14 Bruno Haible <[email protected]>
stdcountof-h tests: Avoid compilation error in C++ mode.
diff --git a/doc/package-version.texi b/doc/package-version.texi
index d83c908a69..4e23b93c77 100644
--- a/doc/package-version.texi
+++ b/doc/package-version.texi
@@ -86,7 +86,7 @@ @node Setting the package version
dist-hook: dist-tarball-version
.PHONY: dist-tarball-version
dist-tarball-version:
- echo '$(VERSION)' > $(distdir)/.tarball-version
+ $(AM_V_GEN)echo '$(VERSION)' > $(distdir)/.tarball-version
@end example
Typically, the maintainer will set the version number in a clean directory
--
2.52.0