]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: use automake's silent-rules, enhance to silence make
authorYann E. MORIN" <yann.morin.1998@free.fr>
Sun, 3 Jun 2012 15:25:53 +0000 (17:25 +0200)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Sun, 3 Jun 2012 15:25:53 +0000 (17:25 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Makefile.am
configure.ac

index 2dfdf75cee09d7a2e2593ee7f0aee7705f5f522e..c3bec4596d2b3244c20a32dd1c147fd745ad26f4 100644 (file)
@@ -1,4 +1,5 @@
 ACLOCAL_AMFLAGS = -I scripts/.autostuff/m4
+MAKEFLAGS = $(SILENT_MAKEFLAGS)
 if COND_utils
     MAYBE_utils = utils
 endif
index 731d36b84a3ba04ee16dd512ff00cb408bac8483..231741b16263e05a10e4cbe8cdde87f62d0edd94 100644 (file)
@@ -30,6 +30,17 @@ AS_IF(
 
 AM_INIT_AUTOMAKE
 
+AS_IF(
+    [test "$(./scripts/version.sh --internal)" = "hg"],
+    [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
 LT_PREREQ([2.2.6])