aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorGianni Tedesco <gianni.tedesco@citrix.com>2010-10-28 11:45:54 +0100
committerGianni Tedesco <gianni.tedesco@citrix.com>2010-10-28 11:45:54 +0100
commit7d241c5962ab342d63380750d19a2a7af6d00e3a (patch)
treedc326622e58421190713e03125c85758911462a4 /tools/Makefile
parentd7249faf390effb4b85bdc04088de654db39d4f8 (diff)
downloadxen-7d241c5962ab342d63380750d19a2a7af6d00e3a.tar.gz
xen-7d241c5962ab342d63380750d19a2a7af6d00e3a.tar.bz2
xen-7d241c5962ab342d63380750d19a2a7af6d00e3a.zip
tools: Makefile: delete qemu during make distclean
The top-level makefile claims this to be the expected behaviour so make it so. Signed-off-by: Gianni Tedesco <gianni.tedesco@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 97bfecf862..ed70b93a84 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -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
@@ -68,6 +73,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) \