From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH v2 2/4] Makefile: support -s switch Date: Fri, 1 Feb 2019 12:37:14 +0000 Message-ID: <20190201123716.92901-3-andre.przywara@arm.com> References: <20190201123716.92901-1-andre.przywara@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org To: Will Deacon Return-path: In-Reply-To: <20190201123716.92901-1-andre.przywara@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org "make -s" suppresses normal output, just shows warnings and errors. But since we explicitly override the make output with our fancy concise version, we miss out on this feature. Do as the kernel does and explicitly suppress every normal output when -s is given. This helps to spot warnings that scroll out of the terminal window too quickly. Signed-off-by: Andre Przywara --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4faff66..ec75cd99 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,11 @@ # ifeq ($(strip $(V)),) - E = @echo + ifeq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),) + E = @echo + else + E = @\# + endif Q = @ else E = @\# -- 2.17.1