From 7bfe71ee204fc28343fc9d8405f1cf73391fb861 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 3 Jun 2012 17:25:53 +0200 Subject: [PATCH] configure: use automake's silent-rules, enhance to silence make Signed-off-by: "Yann E. MORIN" --- Makefile.am | 1 + configure.ac | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Makefile.am b/Makefile.am index 2dfdf75..c3bec45 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ ACLOCAL_AMFLAGS = -I scripts/.autostuff/m4 +MAKEFLAGS = $(SILENT_MAKEFLAGS) if COND_utils MAYBE_utils = utils endif diff --git a/configure.ac b/configure.ac index 731d36b..231741b 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) -- 2.39.5