This patch makes './configure --enable-silent-rules' print:

    $ make
    [...]
    AR       lib/libhello.a
    CCLD     hello
    GEN      hello.1

Instead of:

    $ make V=0
    AR       lib/libhello.a
    CCLD     hello
    /bin/sh '/home/collin/.local/src/hello/build-aux/missing' help2man 
--include=./man/hello.x ./hello -o hello.1-t
    chmod a=r hello.1-t
    mv -f hello.1-t hello.1

Collin

>From 94cd089e5029196823a50e0eee265fbc45a96fee Mon Sep 17 00:00:00 2001
Message-ID: <94cd089e5029196823a50e0eee265fbc45a96fee.1753411540.git.collin.fu...@gmail.com>
From: Collin Funk <[email protected]>
Date: Thu, 24 Jul 2025 19:27:11 -0700
Subject: [PATCH] build: respect Automake silent-rules when generating hello.1

* Makefile.am (hello.1): Use $(AM_V_GEN) and $(AM_V_at).
---
 Makefile.am | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1a0ee0f..d946a21 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -57,9 +57,10 @@ endif
 
 if BUILD_FROM_GIT
 hello.1: hello$(EXEEXT)
-	$(HELP2MAN) --include=$(top_srcdir)/man/hello.x $(top_builddir)/hello$(EXEEXT) -o $@-t
-	chmod a=r $@-t
-	mv -f $@-t $@
+	$(AM_V_GEN)$(HELP2MAN) --include=$(top_srcdir)/man/hello.x \
+	  $(top_builddir)/hello$(EXEEXT) -o $@-t;
+	$(AM_V_at)chmod a=r $@-t
+	$(AM_V_at)mv -f $@-t $@
 
 CLEANFILES += $(man_MANS)
 endif
-- 
2.50.1

Reply via email to