ia64/xen-unstable

view tools/Makefile @ 9660:b454a09cddb1

build: Clean up use of .PHONY

* Move .PHONY directives next to targets,
this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...

Signed-Off-By: Horms <horms@verge.net.au>
author kaf24@firebug.cl.cam.ac.uk
date Mon Apr 10 17:02:49 2006 +0100 (2006-04-10)
parents 905cfaa5986b
children ff6666d67b83
line source
1 XEN_ROOT = ../
2 include $(XEN_ROOT)/tools/Rules.mk
4 SUBDIRS :=
5 SUBDIRS += libxc
6 SUBDIRS += xenstore
7 SUBDIRS += misc
8 SUBDIRS += examples
9 SUBDIRS += xentrace
10 SUBDIRS += xcutils
11 SUBDIRS += firmware
12 SUBDIRS += security
13 SUBDIRS += console
14 SUBDIRS += xenmon
15 SUBDIRS += guest-headers
16 ifeq ($(VTPM_TOOLS),y)
17 SUBDIRS += vtpm_manager
18 SUBDIRS += vtpm
19 endif
20 SUBDIRS += xenstat
21 # These don't cross-compile
22 ifeq ($(XEN_COMPILE_ARCH),$(XEN_TARGET_ARCH))
23 SUBDIRS += python
24 SUBDIRS += pygrub
25 endif
27 .PHONY: all
28 all: check
29 @set -e; for subdir in $(SUBDIRS); do \
30 $(MAKE) -C $$subdir $@; \
31 done
32 $(MAKE) ioemu
34 .PHONY: install
35 install: check
36 @set -e; for subdir in $(SUBDIRS); do \
37 $(MAKE) -C $$subdir $@; \
38 done
39 $(MAKE) ioemuinstall
40 $(INSTALL_DIR) -p $(DESTDIR)/var/xen/dump
42 .PHONY: clean
43 clean: check_clean
44 @set -e; for subdir in $(SUBDIRS); do \
45 $(MAKE) -C $$subdir $@; \
46 done
47 $(MAKE) ioemuclean
49 .PHONY: check
50 check:
51 $(MAKE) -C check
53 .PHONY: check_clean
54 check_clean:
55 $(MAKE) -C check clean
57 .PHONY: ioemu ioemuinstall ioemuclean
58 ifndef XEN_NO_IOEMU
59 ioemu ioemuinstall ioemuclean:
60 [ -f ioemu/config-host.h ] || \
61 (cd ioemu; ./configure --prefix=usr)
62 $(MAKE) -C ioemu $(patsubst ioemu%,%,$@)
63 else
64 ioemu ioemuinstall ioemuclean:
65 endif