ia64/xen-unstable

view tools/examples/Makefile @ 6435:b4b3f6be5226

merge?
author cl349@firebug.cl.cam.ac.uk
date Thu Aug 25 17:27:49 2005 +0000 (2005-08-25)
parents 6ac24e39c9a4 522bc50588ed
children 8799d14bef77 9312a3e8a6f8 112d44270733
line source
1 INSTALL = install
2 INSTALL_DIR = $(INSTALL) -d -m0755
3 INSTALL_PROG = $(INSTALL) -m0755
4 INSTALL_DATA = $(INSTALL) -m0644
6 # Init scripts.
7 XEND_INITD = init.d/xend
8 XENDOMAINS_INITD = init.d/xendomains
10 # Xen configuration dir and configs to go there.
11 XEN_CONFIG_DIR = /etc/xen
12 XEN_CONFIGS = xend-config.sxp
13 XEN_CONFIGS += xmexample1
14 XEN_CONFIGS += xmexample2
15 XEN_CONFIGS += xmexample.vmx
17 # Xen script dir and scripts to go there.
18 XEN_SCRIPT_DIR = /etc/xen/scripts
19 XEN_SCRIPTS = network-bridge vif-bridge
20 XEN_SCRIPTS += network-route vif-route
21 XEN_SCRIPTS += block-file
22 XEN_SCRIPTS += block-enbd
24 XEN_BOOT_DIR = /usr/lib/xen/boot
25 XEN_BOOT = mem-map.sxp
27 XEN_HOTPLUG_DIR = /etc/hotplug.d/xen-backend
28 XEN_HOTPLUG_SCRIPTS = backend.hotplug
30 all:
31 build:
33 install: all install-initd install-configs install-scripts install-boot \
34 install-hotplug
36 install-initd:
37 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
38 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
39 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
41 install-configs:
42 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
43 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
44 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
45 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
46 for i in $(XEN_CONFIGS); \
47 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
48 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
49 done
51 install-scripts:
52 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
53 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
54 for i in $(XEN_SCRIPTS); \
55 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
56 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
57 done
59 install-boot:
60 [ -d $(DESTDIR)$(XEN_BOOT_DIR) ] || \
61 $(INSTALL_DIR) $(DESTDIR)$(XEN_BOOT_DIR)
62 for i in $(XEN_BOOT); \
63 do [ -a $(DESTDIR)$(XEN_BOOT_DIR)/$$i ] || \
64 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_BOOT_DIR); \
65 done
67 install-hotplug:
68 [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
69 $(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
70 for i in $(XEN_HOTPLUG_SCRIPTS); \
71 do [ -a $(DESTDIR)$(XEN_HOTPLUG_DIR)/$$i ] || \
72 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
73 done
75 clean: