From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnpIO-0001Ig-KN for qemu-devel@nongnu.org; Thu, 19 Jan 2012 05:32:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnpIK-00071B-JE for qemu-devel@nongnu.org; Thu, 19 Jan 2012 05:32:40 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:51073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnpIK-00070q-Ap for qemu-devel@nongnu.org; Thu, 19 Jan 2012 05:32:36 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 19 Jan 2012 10:32:35 -0000 Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0JAWWoR2678898 for ; Thu, 19 Jan 2012 10:32:32 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost.localdomain [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0JAWW6Q012067 for ; Thu, 19 Jan 2012 03:32:32 -0700 From: Stefan Hajnoczi Date: Thu, 19 Jan 2012 10:32:06 +0000 Message-Id: <1326969127-22458-5-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1326969127-22458-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1326969127-22458-1-git-send-email-stefanha@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH 4/5] Makefile: Exclude tests/Makefile in unconfigured tree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , qemu-devel@nongnu.org, Stefan Hajnoczi From: Andreas Färber Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build: split unit test builds to a separate makefile fragment), in absence of config-host.mak an undefined $(SRC_PATH) breaks `make distclean' due to /tests/Makefile not being include'able. Fix by only including when config-host.mak is present. Signed-off-by: Andreas Färber Cc: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 2bbc547..d356f07 100644 --- a/Makefile +++ b/Makefile @@ -168,7 +168,9 @@ qemu-ga$(EXESUF): LIBS = $(LIBS_QGA) gen-out-type = $(subst .,-,$(suffix $@)) +ifneq ($(wildcard config-host.mak),) include $(SRC_PATH)/tests/Makefile +endif $(qapi-dir)/qga-qapi-types.c $(qapi-dir)/qga-qapi-types.h :\ $(SRC_PATH)/qapi-schema-guest.json $(SRC_PATH)/scripts/qapi-types.py -- 1.7.8.3