From: Gianni Tedesco Date: Thu, 28 Oct 2010 10:45:54 +0000 (+0100) Subject: tools: Makefile: delete qemu during make distclean X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11325 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7d241c5962ab342d63380750d19a2a7af6d00e3a;p=xen.git 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 Signed-off-by: Ian Jackson --- 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) \