From c71f8e2dc2a31ec1c4cb466007dac6f23745ae09 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 28 Feb 2012 05:25:02 -0500 Subject: [PATCH] =?UTF-8?q?Use=20automake=E2=80=99s=20silent-rules=20mode?= =?UTF-8?q?=20if=20available,=20for=20quieter=20build=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With automake 1.11, this gives us Linux kernel–style silent output that makes warnings more obvious: GEN userinput.pb.cc CXX userinput.pb.o AR libmoshprotos.a CXXLD mosh-client (Use ‘make V=1’ for the traditional verbose output.) Signed-off-by: Anders Kaseorg --- configure.ac | 1 + debian/rules | 1 + src/protobufs/Makefile.am | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 77c9f0c..f9195c8 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,7 @@ AC_PREREQ([2.65]) AC_INIT([mosh], [0.96a], [mosh-devel@mit.edu]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_SRCDIR([src/frontend/mosh-client.cc]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) diff --git a/debian/rules b/debian/rules index ec1b928..9a90c54 100755 --- a/debian/rules +++ b/debian/rules @@ -14,4 +14,5 @@ override_dh_auto_configure: dh_auto_configure -- \ + --disable-silent-rules \ --enable-compile-warnings=error diff --git a/src/protobufs/Makefile.am b/src/protobufs/Makefile.am index ba67a92..0fc6471 100644 --- a/src/protobufs/Makefile.am +++ b/src/protobufs/Makefile.am @@ -7,7 +7,7 @@ AM_CXXFLAGS = $(WARNING_CXXFLAGS) -fno-default-inline -pipe SUFFIXES = .proto .pb.cc .proto.pb.cc: - $(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $< + $(AM_V_GEN)$(PROTOC) --cpp_out=$(builddir) -I$(srcdir) $< noinst_LIBRARIES = libmoshprotos.a