From 7d241c5962ab342d63380750d19a2a7af6d00e3a Mon Sep 17 00:00:00 2001 From: Gianni Tedesco Date: Thu, 28 Oct 2010 11:45:54 +0100 Subject: 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 --- tools/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/Makefile') 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) \ -- cgit v1.2.3