From nobody Thu Nov 6 08:34:28 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1497524396819424.971342503344; Thu, 15 Jun 2017 03:59:56 -0700 (PDT) Received: from localhost ([::1]:53152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLSVH-0005qq-Gh for importer@patchew.org; Thu, 15 Jun 2017 06:59:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLSP5-0008Fg-J0 for qemu-devel@nongnu.org; Thu, 15 Jun 2017 06:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLSP1-0007Yi-Mc for qemu-devel@nongnu.org; Thu, 15 Jun 2017 06:53:31 -0400 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]:36474) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLSP1-0007YV-GE for qemu-devel@nongnu.org; Thu, 15 Jun 2017 06:53:27 -0400 Received: by mail-wr0-x241.google.com with SMTP id 77so2746759wrb.3 for ; Thu, 15 Jun 2017 03:53:27 -0700 (PDT) Received: from 640k.lan (94-39-191-51.adsl-ull.clienti.tiscali.it. [94.39.191.51]) by smtp.gmail.com with ESMTPSA id f21sm3258597wra.5.2017.06.15.03.53.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 03:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=kUIAKwNOAayATPxQP488gOZa7AfDd78rC4JE8OnMUf4=; b=ayBaOQx2dT6lfxRQQvdNFTvOTyz0+VjD1rm2E8r6ipy0eXy4dOydLNLhrXPGBSUzOf CgNT8+2WCaRe+7BifRHt4C+1tieZUxw12sZJaJnZ+ojaI6HiBqCyY1ldaJSgUjtd7Sm5 nAqtwrlBtzJOnzDQ4F0KBEtPaMda1cnLKFZ3MSiYG9dgsjQWusXyB0f5Qq/OySLkODj7 gEagHRCm7keDJ5FN/gxAOUMYzueRaUHpi6DTTCl77LJJQ/yXQdsY0+pmPuzDk3MBodg9 J/AbvgTLtyop55PEYhKPhHxTaig4AgviZt1G0O056PROmzOg+Fx86aIR3vS5BvAP5jem t+kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=kUIAKwNOAayATPxQP488gOZa7AfDd78rC4JE8OnMUf4=; b=Nfi+X7bqSJl9Gta4Jr/adqNwjYavSybqa/KQiYmMlmyTmjJrIjQjBrdR/7IoJDtJGK 4fiTbFEQbIRfrYVxaycS+zGZV1I6M/yGtOdO15DtOQbt/iRvpCSlegOx3pWLxjm9WSpz XsvpSNFVyBkfKew4AEOwYrGzyR2sTZK0HyJPypK+HSoq0ajJUcRRV3tTT8+jtC29Pfxn rIv3ZWVwMVlVt7y9KhEt3IiyMejKJ7L4bP+TqAY817bOV3KaIQBrHHwbMCfN9tIeEQxQ kJ4deZr6RwI3JEKIMRJ+KJ8MAxKoHVhNi/dgc9mQ/oqxrrZrZSiU9T7ZCFo82jG/2SLL V7MA== X-Gm-Message-State: AKS2vOxqCkCk4yaSMqVEczLqoHIVjPLykpjpkaOazCzsL4gBaH4lNl6M K3g0tFZ6TS3W9+FbtQs= X-Received: by 10.28.142.15 with SMTP id q15mr3167258wmd.28.1497524006285; Thu, 15 Jun 2017 03:53:26 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 15 Jun 2017 12:52:34 +0200 Message-Id: <1497523981-38449-15-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1497523981-38449-1-git-send-email-pbonzini@redhat.com> References: <1497523981-38449-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::241 Subject: [Qemu-devel] [PULL 14/41] Makefile: Do not generate files if "configure" has not been run yet X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Thomas Huth When doing a "make -j10" in the vanilla QEMU source tree (without running "configure" first), the Makefile currently generates two files already, qemu-version.h and qemu-options.def. This should not happen, so let's only build the generated files if config-host.mak is available (i.e. "configure" has been run already). Signed-off-by: Thomas Huth Message-Id: <1496926799-13040-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index c830d7a..32d4441 100644 --- a/Makefile +++ b/Makefile @@ -791,9 +791,11 @@ endif # CONFIG_WIN =20 # Add a dependency on the generated files, so that they are always # rebuilt before other object files +ifneq ($(wildcard config-host.mak),) ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOAL= S),,fail)) Makefile: $(GENERATED_FILES) endif +endif =20 .SECONDARY: $(TRACE_HEADERS) $(TRACE_HEADERS:%=3D%-timestamp) \ $(TRACE_SOURCES) $(TRACE_SOURCES:%=3D%-timestamp) \ --=20 1.8.3.1