]> git.sur5r.net Git - kconfig-frontends/commitdiff
buildsystem: fix GEN messages in verbose mode
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 Nov 2016 20:25:48 +0000 (21:25 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 29 Nov 2016 20:30:13 +0000 (21:30 +0100)
So far, setting silent mode was done in configure.ac, and was on by
default for "release" builds and off for "devel" builds.

However, in "release" builds, running "make V=1" would not display the
commands used to generate tsome files (like the ones generated via moc
or sed), because the MAKEFLAGS would always contain -s and it was not
possible to disable this behaviour unless by calling configure again.

Handle the SILENT_MAKEFLAGS like AM_V_GEN et al. are managed, by
diverting it to the correct value without the need to re-run configure.

At the same time, also provide the verbose versions of AM_V_MOC and
AM_V_GPERF (even if that is technically not needed, it's good for
homogeneity with the rest of the automake-generated code).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Makefile.am
configure.ac

index 1bde1e36c5f7ec2b0fc62772921fd00c8226cddc..a6bb262fc6b90947013a3322f6d92ef51859b429 100644 (file)
@@ -1,5 +1,8 @@
 ACLOCAL_AMFLAGS = -I scripts/.autostuff/m4
-MAKEFLAGS = $(SILENT_MAKEFLAGS)
+MAKEFLAGS = $(SILENT_MAKEFLAGS_$(V))
+SILENT_MAKEFLAGS_ = $(SILENT_MAKEFLAGS_$(AM_DEFAULT_VERBOSITY))
+SILENT_MAKEFLAGS_0 = --no-print-directory -s
+SILENT_MAKEFLAGS_1 =
 
 EXTRA_DIST = .version
 
@@ -59,6 +62,7 @@ libs_parser_kconfig_include_HEADERS = \
 AM_V_GPERF = $(AM_V_GPERF_$(V))
 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
 AM_V_GPERF_0 = @echo "  GPERF   " $@;
+AM_V_GPERF_1 =
 
 .gperf.c:
        $(AM_V_GPERF)$(GPERF) -t --output-file $@ -a -C -E -g -k 1,3,$$ -p -t $<
@@ -287,6 +291,7 @@ frontends_qconf_kconfig_qconf_LDADD = \
 AM_V_MOC = $(AM_V_MOC_$(V))
 AM_V_MOC_ = $(AM_V_MOC_$(AM_DEFAULT_VERBOSITY))
 AM_V_MOC_0 = @echo "  MOC     " $@;
+AM_V_MOC_1 =
 
 .h.moc:
        $(AM_V_MOC)$(MOC) -i $< -o $@
index b465dac4ed49dc8b1241023e361e5c9142e45582..bfaf058ac2c7e43386704b1277026bea9d991015 100644 (file)
@@ -31,12 +31,6 @@ AS_IF(
     [AM_SILENT_RULES],
     [AM_SILENT_RULES([yes])])
 
-AS_IF(
-    [test $AM_DEFAULT_VERBOSITY -eq 0],
-    [SILENT_MAKEFLAGS="--no-print-directory -s"],
-    [SILENT_MAKEFLAGS=""])
-AC_SUBST([SILENT_MAKEFLAGS])
-
 #----------------------------------------
 # Prepare libtool
 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) dnl Automake, we have a problem...