ia64/xen-unstable

view tools/examples/Makefile @ 3562:308203ddc173

bitkeeper revision 1.1159.223.48 (41f9204fFDaBv7jCdF63bwx5zXNlNA)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into arcadians.cl.cam.ac.uk:/local/scratch-2/cl349/xen-2.0-testing.bk
author cl349@arcadians.cl.cam.ac.uk
date Thu Jan 27 17:09:35 2005 +0000 (2005-01-27)
parents 5c6d547e4e59 0a8bc30a7c4b
children 2e60786262c4 3ee85723a341 a0be5e5a1f37
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
16 # Xen script dir and scripts to go there.
17 XEN_SCRIPT_DIR = /etc/xen/scripts
18 XEN_SCRIPTS = network vif-bridge
19 XEN_SCRIPTS += network-route vif-route
20 XEN_SCRIPTS += block-file
21 XEN_SCRIPTS += block-enbd
23 all:
25 install: all install-initd install-configs install-scripts
27 install-initd:
28 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
29 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
30 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
32 install-configs:
33 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
34 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
35 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
36 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
37 for i in $(XEN_CONFIGS); \
38 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
39 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
40 done
42 install-scripts:
43 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
44 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
45 for i in $(XEN_SCRIPTS); \
46 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
47 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
48 done
50 clean: