[PATCH] config headers: add support for silent builds

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
* lib/am/remake-hdr.am (%STAMP%): Use $(AM_V_at) and $(AM_V_GEN).
(%CONFIG_HIN%): Likewise.
---
 lib/am/remake-hdr.am | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/am/remake-hdr.am b/lib/am/remake-hdr.am
index 0d9f4cd8b9da..c0016cffc626 100644
--- a/lib/am/remake-hdr.am
+++ b/lib/am/remake-hdr.am
@@ -21,8 +21,8 @@
 
 
 %STAMP%: %CONFIG_H_DEPS% $(top_builddir)/config.status
-	@rm -f %STAMP%
-	cd $(top_builddir) && $(SHELL) ./config.status %CONFIG_H_PATH%
+	$(AM_V_at)rm -f %STAMP%
+	$(AM_V_GEN)cd $(top_builddir) && $(SHELL) ./config.status %CONFIG_H_PATH%
 
 
 ## Only the first file of AC_CONFIG_HEADERS is assumed to be generated
@@ -30,7 +30,7 @@
 if %?FIRST-HDR%
 %CONFIG_HIN%: %MAINTAINER-MODE% $(am__configure_deps) %FILES%
 ## Cater to parallel BSD make.
-	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+	$(AM_V_GEN)($(am__cd) $(top_srcdir) && $(AUTOHEADER))
 ## Whenever $(AUTOHEADER) has run, we must make sure that
 ## ./config.status will rebuild config.h.  The dependency from %STAMP%
 ## on %CONFIG_H_DEPS% (which contains config.hin) is not enough to
@@ -61,11 +61,11 @@ if %?FIRST-HDR%
 ##
 ## A solution is to erase %STAMP% here so that the %STAMP% rule
 ## is always triggered after the this one.
-	rm -f %STAMP%
+	$(AM_V_at)rm -f %STAMP%
 ## Autoheader has the bad habit of not changing the timestamp if
 ## config.hin is unchanged, which breaks Make targets.  Since what
 ## must not changed gratuitously is config.h, which is already handled
 ## by config.status, there is no reason to make things complex for
 ## config.hin.
-	touch $@
+	$(AM_V_at)touch $@
 endif %?FIRST-HDR%
-- 
2.33.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.