xen-vtx-unstable

view tools/examples/Makefile @ 6587:cac138ea9284

Install hotplug script(s) unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Sep 02 14:20:12 2005 +0000 (2005-09-02)
parents af78c9d526e0
children e9d01c5dc7b4 219d96d545fc 4d899a738d59 e7c7196fa329
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-file
25 XEN_SCRIPTS += block-enbd
27 XEN_BOOT_DIR = /usr/lib/xen/boot
28 XEN_BOOT = mem-map.sxp
30 XEN_HOTPLUG_DIR = /etc/hotplug
31 XEN_HOTPLUG_SCRIPTS = xen-backend.agent
33 all:
34 build:
36 install: all install-initd install-configs install-scripts install-boot \
37 install-hotplug
39 install-initd:
40 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
41 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
42 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
44 install-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 for i in $(XEN_CONFIGS); \
50 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
51 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
52 done
54 install-scripts:
55 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
56 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
57 for i in $(XEN_SCRIPTS); \
58 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
59 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
60 done
62 install-boot:
63 [ -d $(DESTDIR)$(XEN_BOOT_DIR) ] || \
64 $(INSTALL_DIR) $(DESTDIR)$(XEN_BOOT_DIR)
65 for i in $(XEN_BOOT); \
66 do [ -a $(DESTDIR)$(XEN_BOOT_DIR)/$$i ] || \
67 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_BOOT_DIR); \
68 done
70 install-hotplug:
71 [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
72 $(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
73 for i in $(XEN_HOTPLUG_SCRIPTS); \
74 do \
75 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
76 done
78 clean: