]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
config headers: add support for silent builds
authorMike Frysinger <vapier@gentoo.org>
Sun, 31 Oct 2021 16:52:43 +0000 (12:52 -0400)
committerKarl Berry <karl@freefriends.org>
Wed, 3 Nov 2021 00:59:21 +0000 (17:59 -0700)
* lib/am/remake-hdr.am (%STAMP%): Use $(AM_V_at) and $(AM_V_GEN).
(%CONFIG_HIN%): Likewise.

lib/am/remake-hdr.am

index 0d9f4cd8b9da6c753f2e956eba75a4535a25e49e..c0016cffc6261993b3f23e6487cd86a6da9180e4 100644 (file)
@@ -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%