ia64/xen-unstable

view tools/examples/Makefile @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children 06d84bf87159
line source
1 XEN_ROOT = ../../
2 include $(XEN_ROOT)/tools/Rules.mk
4 INSTALL = install
5 INSTALL_DIR = $(INSTALL) -d -m0755
6 INSTALL_PROG = $(INSTALL) -m0755
7 INSTALL_DATA = $(INSTALL) -m0644
9 # Init scripts.
10 XEND_INITD = init.d/xend
11 XENDOMAINS_INITD = init.d/xendomains
13 # Xen configuration dir and configs to go there.
14 XEN_CONFIG_DIR = /etc/xen
15 XEN_CONFIGS = xend-config.sxp
16 XEN_CONFIGS += xmexample1
17 XEN_CONFIGS += xmexample2
18 XEN_CONFIGS += xmexample.vmx
20 # Xen script dir and scripts to go there.
21 XEN_SCRIPT_DIR = /etc/xen/scripts
22 XEN_SCRIPTS = network-bridge vif-bridge
23 XEN_SCRIPTS += network-route vif-route
24 XEN_SCRIPTS += block-phy
25 XEN_SCRIPTS += block-file
26 XEN_SCRIPTS += block-enbd
28 # no 64-bit specifics in mem-map.sxp
29 # so place in /usr/lib, not /usr/lib64
30 XEN_BOOT_DIR = /usr/lib/xen/boot
31 XEN_BOOT = mem-map.sxp
33 XEN_HOTPLUG_DIR = /etc/hotplug
34 XEN_HOTPLUG_SCRIPTS = xen-backend.agent
36 all:
37 build:
39 install: all install-initd install-configs install-scripts install-boot \
40 install-hotplug
42 install-initd:
43 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
44 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
45 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
47 install-configs: $(XEN_CONFIGS)
48 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
49 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
50 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
51 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
52 for i in $(XEN_CONFIGS); \
53 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
54 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
55 done
57 install-scripts:
58 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
59 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
60 for i in $(XEN_SCRIPTS); \
61 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
62 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
63 done
65 install-boot:
66 [ -d $(DESTDIR)$(XEN_BOOT_DIR) ] || \
67 $(INSTALL_DIR) $(DESTDIR)$(XEN_BOOT_DIR)
68 for i in $(XEN_BOOT); \
69 do [ -a $(DESTDIR)$(XEN_BOOT_DIR)/$$i ] || \
70 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_BOOT_DIR); \
71 done
73 install-hotplug:
74 [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
75 $(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
76 for i in $(XEN_HOTPLUG_SCRIPTS); \
77 do \
78 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
79 done
81 clean: