From patchwork Tue Oct 16 16:42:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Ospite X-Patchwork-Id: 10643861 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 374A61508 for ; Tue, 16 Oct 2018 16:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25B372A5B8 for ; Tue, 16 Oct 2018 16:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1A2842A5F6; Tue, 16 Oct 2018 16:42:38 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 942A32A5D0 for ; Tue, 16 Oct 2018 16:42:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727220AbeJQAdu (ORCPT ); Tue, 16 Oct 2018 20:33:50 -0400 Received: from mail.ao2.it ([92.243.12.208]:59680 "EHLO ao2.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbeJQAdt (ORCPT ); Tue, 16 Oct 2018 20:33:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ao2.it; s=20180927; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=L/QnxmQJW95AyIZx0spHKOd8XvXY6Gi0lf63Il8LXfI=; b=N57M1E2eG1bTSBm6ChyW8NpSUtyEPWVj72TGs4hTpH45l6lxi0szfX5ej1hUxP/4oJDBRp+EpAbsRz4DVmvlqUwuh02gIpEFDEeSPS5R99JN2OaL6cn93IpicNTizBF12Fd1rrS676V5hiR3xg+Th4YYLnA1p0KqIczslGbHlcMA8vFtMhNywd9TQAOoux5r81xTolxRxdVTEOmQ7TkWsR6RJs6lLO/zh3PzlGEKOcJEvbfFRbzIwFV+X2MuKUtNZj+30J9NSV8ZWtdVCvSuApXDPCB8jekhA4gw+QMPO/uuUwFtqEAsawAoWFOyVxQWu2KL/rCgGIKzDGhQWmh6ww==; Received: from localhost ([::1] helo=jcn) by ao2.it with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1gCSQK-0003wT-0x; Tue, 16 Oct 2018 18:42:24 +0200 Received: from ao2 by jcn with local (Exim 4.91) (envelope-from ) id 1gCSQS-0007fI-Gc; Tue, 16 Oct 2018 18:42:32 +0200 From: Antonio Ospite To: dash@vger.kernel.org Cc: Antonio Ospite Subject: [PATCH 2/5] Enable automake silent rules Date: Tue, 16 Oct 2018 18:42:17 +0200 Message-Id: <20181016164220.29413-3-ao2@ao2.it> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016164220.29413-1-ao2@ao2.it> References: <20181016164220.29413-1-ao2@ao2.it> MIME-Version: 1.0 X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM/Vb;]yA5\I~93>J<_`<4)A{':UrE Sender: dash-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dash@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable automake silent rules to make it easier to spot compilation problems. Silent rules will be enabled by default, but only if they are available, in order to keep compatibility with older autotools versions. Prepend the silent strings also to custom rules. Signed-off-by: Antonio Ospite --- configure.ac | 2 ++ src/Makefile.am | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/configure.ac b/configure.ac index 594fb42..036730d 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,8 @@ AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADERS(config.h) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)]) + dnl Checks for programs. AC_PROG_CC AC_USE_SYSTEM_EXTENSIONS diff --git a/src/Makefile.am b/src/Makefile.am index 8b9eb8c..1732465 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -44,27 +44,27 @@ EXTRA_DIST = \ mknodes.c nodetypes nodes.c.pat mksyntax.c mksignames.c token.h token_vars.h: mktokens - $(SHELL) $^ + $(AM_V_GEN)$(SHELL) $^ builtins.def: builtins.def.in $(top_builddir)/config.h - $(COMPILE) -E -x c -o $@ $< + $(AM_V_CC)$(COMPILE) -E -x c -o $@ $< builtins.c builtins.h: mkbuiltins builtins.def - $(SHELL) $^ + $(AM_V_GEN)$(SHELL) $^ init.c: mkinit $(dash_CFILES) - ./$^ + $(AM_V_GEN)./$^ nodes.c nodes.h: mknodes nodetypes nodes.c.pat - ./$^ + $(AM_V_GEN)./$^ syntax.c syntax.h: mksyntax - ./$^ + $(AM_V_GEN)./$^ signames.c: mksignames - ./$^ + $(AM_V_GEN)./$^ mksyntax: token.h $(HELPERS): %: %.c - $(COMPILE_FOR_BUILD) -o $@ $< + $(AM_V_CC)$(COMPILE_FOR_BUILD) -o $@ $<