From patchwork Sat Jul 18 20:42:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramsay Jones X-Patchwork-Id: 36210 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6IL9qsa006441 for ; Sat, 18 Jul 2009 21:09:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753747AbZGRVJ6 (ORCPT ); Sat, 18 Jul 2009 17:09:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753757AbZGRVJ6 (ORCPT ); Sat, 18 Jul 2009 17:09:58 -0400 Received: from anchor-post-2.mail.demon.net ([195.173.77.133]:41476 "EHLO anchor-post-2.mail.demon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753744AbZGRVJ6 (ORCPT ); Sat, 18 Jul 2009 17:09:58 -0400 Received: from ramsay1.demon.co.uk ([193.237.126.196]) by anchor-post-2.mail.demon.net with esmtp (Exim 4.69) id 1MSHAL-0002cj-jw; Sat, 18 Jul 2009 21:09:57 +0000 Message-ID: <4A6233D0.1060502@ramsay1.demon.co.uk> Date: Sat, 18 Jul 2009 21:42:56 +0100 From: Ramsay Jones User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Christopher Li CC: Sparse Mailing-list Subject: [PATCH 3/5] Makefile: suppress error message from shell Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org In particular, on systems which do not have 'pkg-config' installed, every invocation of make issues the following message: /bin/sh: pkg-config: command not found Suppress the message by redirecting stderr to the bit-bucket. Signed-off-by: Ramsay Jones --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 72f3686..70ccbc9 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ AR = ar # CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2 # -HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes') +HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 2>/dev/null && echo 'yes') HAVE_GCC_DEP=$(shell touch .gcc-test.c && \ $(CC) -c -Wp,-MD,.gcc-test.d .gcc-test.c 2>/dev/null && \ echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c)