$NetBSD: patch-aa,v 1.1.1.1 2006/07/02 16:49:31 bouyer Exp $

--- Makefile.orig	2006-01-31 17:09:20.000000000 +0100
+++ Makefile
@@ -5,23 +5,18 @@ SUBDIRS :=
 SUBDIRS += libxc
 SUBDIRS += xenstore
 SUBDIRS += misc
-SUBDIRS += examples
-SUBDIRS += xentrace
 SUBDIRS += xcutils
 SUBDIRS += firmware
 SUBDIRS += security
 SUBDIRS += console
-SUBDIRS += xenmon
-SUBDIRS += guest-headers
 ifeq ($(VTPM_TOOLS),y)
 SUBDIRS += vtpm_manager
 SUBDIRS += vtpm
 endif
 SUBDIRS += xenstat
 # These don't cross-compile
 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
 SUBDIRS += python
-SUBDIRS += pygrub
 endif
 
 .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean
@@ -45,15 +39,13 @@ clean: check_clean
 	$(MAKE) ioemuclean
 
 check:
-	$(MAKE) -C check
 
 check_clean:
-	$(MAKE) -C check clean
 
 ifndef XEN_NO_IOEMU
 ioemu ioemuinstall ioemuclean:
 	[ -f ioemu/config-host.h ] || \
-	(cd ioemu; ./configure --prefix=usr)
+	(cd ioemu; ./configure --prefix=$(PREFIX))
 	$(MAKE) -C ioemu $(patsubst ioemu%,%,$@)
 else
 ioemu ioemuinstall ioemuclean:
