From patchwork Thu Aug 27 19:17:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 32280 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bilbo.ozlabs.org (Postfix) with ESMTPS id E5D5AB7BA1 for ; Fri, 28 Aug 2009 05:26:07 +1000 (EST) Received: from localhost ([127.0.0.1]:46587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgkbj-0007bK-Kg for incoming@patchwork.ozlabs.org; Thu, 27 Aug 2009 15:26:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgkWV-0005Lv-6u for qemu-devel@nongnu.org; Thu, 27 Aug 2009 15:20:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgkWQ-0005Jn-9f for qemu-devel@nongnu.org; Thu, 27 Aug 2009 15:20:38 -0400 Received: from [199.232.76.173] (port=54399 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgkWQ-0005Jk-5w for qemu-devel@nongnu.org; Thu, 27 Aug 2009 15:20:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45484) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgkWP-00060y-KN for qemu-devel@nongnu.org; Thu, 27 Aug 2009 15:20:33 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7RJKWeZ002583 for ; Thu, 27 Aug 2009 15:20:33 -0400 Received: from localhost.localdomain (vpn2-8-219.ams2.redhat.com [10.36.8.219]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7RJKR01028641; Thu, 27 Aug 2009 15:20:32 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 27 Aug 2009 21:17:38 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 03/30] Remove useless check for config-host.mak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org If config-host.mak dont' exist, we have exited in the check at the beginning of the file. Once here, move the bits to the else part of the test at the beginning of the file. Signed-off-by: Juan Quintela --- Makefile | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d7db158..bd180f9 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ ifneq ($(wildcard config-host.mak),) all: build-all include config-host.mak include $(SRC_PATH)/rules.mak +config-host.mak: configure + @echo $@ is out-of-date, running configure + @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh else config-host.mak: @echo "Please call configure before running make!" @@ -26,12 +29,6 @@ endif build-all: config-host.h $(TOOLS) $(DOCS) recurse-all -config-host.mak: configure -ifneq ($(wildcard config-host.mak),) - @echo $@ is out-of-date, running configure - @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh -endif - %.c %.h: config-host.h config-host.h: config-host.h-timestamp config-host.h-timestamp: config-host.mak