[PATCH] [build] silent compilation



According to http://live.gnome.org/GnomeGoals/NicerBuilds

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
 configure.ac           |    4 +++-
 tools/vala/Makefile.am |    6 +++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1694075..47d0841 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ m4_define([prj_gir_name], [Grilo])
 
 AC_INIT([prj_name], [prj_version])
 
-AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+AM_INIT_AUTOMAKE([foreign])
 
 AC_CONFIG_MACRO_DIR([m4])
 AC_CONFIG_SRCDIR([src])
@@ -28,6 +28,8 @@ AC_HEADER_STDC
 
 AM_MAINTAINER_MODE
 
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
 CFLAGS="$CFLAGS -Wall -Werror -Wmissing-prototypes -Wmissing-declarations -std=c99"
 
 # ----------------------------------------------------------
diff --git a/tools/vala/Makefile.am b/tools/vala/Makefile.am
index 28a5299..2360e73 100644
--- a/tools/vala/Makefile.am
+++ b/tools/vala/Makefile.am
@@ -18,7 +18,7 @@ valac_common =				\
         --pkg grilo-0.1
 
 vala.stamp: $(grilo_simple_playlist_VALASOURCES)
-	$(VALAC) $(valac_common) $^
+	$(VALA_V)$(VALAC) $(valac_common) $^
 	touch $@
 
 grilo_simple_playlist_CFLAGS =		\
@@ -38,3 +38,7 @@ MAINTAINERCLEANFILES =  \
         *~
 
 DISTCLEANFILES = $(MAINTAINERCLEANFILES)
+
+VALA_V = $(VALA_V_$(V))
+VALA_V_ = $(VALA_V_$(AM_DEFAULT_VERBOSITY))
+VALA_V_0 = @echo "  VALAC " $^;
-- 
1.7.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]