From: Gianni Tedesco Subject: [PATCH]: tools: delete qemu during make distclean Date: Mon, 25 Oct 2010 17:34:28 +0100 Message-ID: <1288024468.12843.4431.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel , Ian Jackson List-Id: xen-devel@lists.xenproject.org The top-level makefile claims this to be the expected behaviour so make it so. Signed-off-by: Gianni Tedesco diff -r 2e8bdff60d01 tools/Makefile --- a/tools/Makefile Sun Oct 24 13:18:26 2010 +0100 +++ b/tools/Makefile Mon Oct 25 17:32:03 2010 +0100 @@ -30,7 +30,12 @@ SUBDIRS-y += libfsimage SUBDIRS-$(LIBXENAPI_BINDINGS) += libxen SUBDIRS-$(CONFIG_Linux) += fs-back SUBDIRS-$(CONFIG_NetBSD) += fs-back + +# do not recurse in to a dir we are about to delete +ifneq "$(MAKECMDGOALS)" "distclean" SUBDIRS-$(CONFIG_IOEMU) += ioemu-dir +endif + SUBDIRS-y += xenpmd SUBDIRS-y += libxl SUBDIRS-y += remus @@ -67,6 +72,7 @@ clean: subdirs-clean .PHONY: distclean distclean: subdirs-distclean + rm -rf ioemu-dir ioemu-remote ifneq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH)) IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \