ia64/xen-unstable

view tools/Makefile @ 10773:7d6f0791c650

Fix 'make clean' when ioemu configuration failed.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jul 25 11:19:48 2006 +0100 (2006-07-25)
parents f35b9950843c
children b8b7c278ca4c
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS-y :=
5 SUBDIRS-y += libxc
6 SUBDIRS-y += xenstore
7 SUBDIRS-y += misc
8 SUBDIRS-y += examples
9 SUBDIRS-y += xentrace
10 SUBDIRS-$(CONFIG_XCUTILS) += xcutils
11 SUBDIRS-y += firmware
12 SUBDIRS-y += security
13 SUBDIRS-y += console
14 SUBDIRS-y += xenmon
15 SUBDIRS-y += guest-headers
16 SUBDIRS-$(VTPM_TOOLS) += vtpm_manager
17 SUBDIRS-$(VTPM_TOOLS) += vtpm
18 SUBDIRS-y += xenstat
19 SUBDIRS-y += libaio
20 SUBDIRS-y += blktap
22 # These don't cross-compile
23 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
24 SUBDIRS-y += python
25 SUBDIRS-y += pygrub
26 endif
28 .PHONY: all
29 all: check
30 @set -e; for subdir in $(SUBDIRS-y); do \
31 $(MAKE) -C $$subdir $@; \
32 done
33 $(MAKE) ioemu
35 .PHONY: install
36 install: check
37 @set -e; for subdir in $(SUBDIRS-y); do \
38 $(MAKE) -C $$subdir $@; \
39 done
40 $(MAKE) ioemuinstall
41 $(INSTALL_DIR) -p $(DESTDIR)/var/xen/dump
43 .PHONY: clean
44 clean: check_clean
45 @set -e; for subdir in $(SUBDIRS-y); do \
46 $(MAKE) -C $$subdir $@; \
47 done
48 $(MAKE) ioemuclean
50 .PHONY: distclean
51 distclean: clean
53 .PHONY: check
54 check:
55 $(MAKE) -C check
57 .PHONY: check_clean
58 check_clean:
59 $(MAKE) -C check clean
61 .PHONY: ioemu ioemuinstall ioemuclean
62 ifdef CONFIG_IOEMU
63 export IOEMU_DIR ?= ioemu
64 ioemu ioemuinstall:
65 [ -f $(IOEMU_DIR)/config-host.h ] || \
66 (cd $(IOEMU_DIR) && sh configure --prefix=/usr)
67 $(MAKE) -C $(IOEMU_DIR) $(patsubst ioemu%,%,$@)
68 ioemuclean:
69 [ ! -f $(IOEMU_DIR)/config-host.h ] || $(MAKE) -C $(IOEMU_DIR) clean
70 else
71 ioemu ioemuinstall ioemuclean:
72 endif