Makefile.am: Tweak `silent-rules' machinery.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 Jul 2017 10:43:11 +0000 (11:43 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 28 Mar 2020 14:20:48 +0000 (14:20 +0000)
Since Automake 1.11, the advice for setting up custom silent-rules
recipes has changed, so use the new machinery.

Also, I'm no longer mainly working on wheezy, and Automake has made the
operation field two spaces wider while I wasn't looking, so make the
output line up properly.

This means that CFD now requires Automake 1.11.2 or later to build from
the Git tree.

Makefile.am

index 5f91699..7df6892 100644 (file)
@@ -38,9 +38,9 @@ CLEANFILES             =
 confsubst = $(srcdir)/confsubst.in
 mkdir_p = $(srcdir)/config/install-sh -d
 
-V_SUBST = $(V_SUBST_$(V))
-V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
-V_SUBST_0 = @echo "  SUBST  $@";
+V_SUBST = $(V_SUBST_@AM_V@)
+V_SUBST_ = $(V_SUBST_@AM_DEFAULT_V@)
+V_SUBST_0 = @echo "  SUBST    $@";
 SUBST = $(V_SUBST)$(confsubst)
 
 ###--------------------------------------------------------------------------