From patchwork Fri Feb 1 12:37:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 10792659 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1A717186E for ; Fri, 1 Feb 2019 12:37:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0BC052F29B for ; Fri, 1 Feb 2019 12:37:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 001D932021; Fri, 1 Feb 2019 12:37:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A724E318F2 for ; Fri, 1 Feb 2019 12:37:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729764AbfBAMhY (ORCPT ); Fri, 1 Feb 2019 07:37:24 -0500 Received: from foss.arm.com ([217.140.101.70]:59250 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727691AbfBAMhY (ORCPT ); Fri, 1 Feb 2019 07:37:24 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B964380D; Fri, 1 Feb 2019 04:37:23 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CDDF13F59C; Fri, 1 Feb 2019 04:37:22 -0800 (PST) From: Andre Przywara To: Will Deacon Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu 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> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190201123716.92901-1-andre.przywara@arm.com> References: <20190201123716.92901-1-andre.przywara@arm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP "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 = @\#