ia64/xen-unstable

view tools/examples/Makefile @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents 887337323bd8
children
line source
1 XEN_ROOT = ../../
2 include $(XEN_ROOT)/tools/Rules.mk
4 # Init scripts.
5 XEND_INITD = init.d/xend
6 XENDOMAINS_INITD = init.d/xendomains
7 XENDOMAINS_SYSCONFIG = init.d/sysconfig.xendomains
9 # Xen configuration dir and configs to go there.
10 XEN_READMES = README
11 XEN_READMES += README.incompatibilities
12 XEN_CONFIGS = xend-config.sxp
13 XEN_CONFIGS += xm-config.xml
14 XEN_CONFIGS += xmexample1
15 XEN_CONFIGS += xmexample2
16 XEN_CONFIGS += xmexample3
17 XEN_CONFIGS += xmexample.hvm
18 XEN_CONFIGS += xmexample.hvm-stubdom
19 XEN_CONFIGS += xmexample.pv-grub
20 XEN_CONFIGS += xmexample.nbd
21 XEN_CONFIGS += xmexample.vti
22 XEN_CONFIGS += xend-pci-quirks.sxp
23 XEN_CONFIGS += xend-pci-permissive.sxp
25 .PHONY: all
26 all:
28 .PHONY: build
29 build:
31 .PHONY: install
32 install: all install-readmes install-configs $(HOTPLUGS)
34 .PHONY: install-readmes
35 install-readmes:
36 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
37 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
38 set -e; for i in $(XEN_READMES); \
39 do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
40 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
41 done
43 .PHONY: install-configs
44 install-configs: $(XEN_CONFIGS)
45 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
46 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
47 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
48 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
49 set -e; for i in $(XEN_CONFIGS); \
50 do [ -e $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
51 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
52 done
54 .PHONY: install-hotplug
55 install-hotplug:
56 [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
57 $(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
58 set -e; for i in $(XEN_HOTPLUG_SCRIPTS); \
59 do \
60 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
61 done
63 .PHONY: install-udev
64 install-udev:
65 [ -d $(DESTDIR)$(UDEV_RULES_DIR) ] || \
66 $(INSTALL_DIR) $(DESTDIR)$(UDEV_RULES_DIR)/rules.d
67 set -e; for i in $(UDEV_RULES); \
68 do \
69 $(INSTALL_DATA) $$i $(DESTDIR)$(UDEV_RULES_DIR); \
70 ln -sf ../$$i $(DESTDIR)$(UDEV_RULES_DIR)/rules.d; \
71 done
73 .PHONY: clean
74 clean: