debuggers.hg

view tools/examples/Makefile @ 3602:2e60786262c4

bitkeeper revision 1.1159.231.8 (41f92d4dBn-4k24hnQtAJIjhmWfRjQ)

Merge changes from 2.0-testing.

Signed-off-by: c@pin.lu
author cl349@arcadians.cl.cam.ac.uk
date Thu Jan 27 18:05:01 2005 +0000 (2005-01-27)
parents f7ab8a19799b 308203ddc173
children 30ee9c427a5b bc0fbb38cb25
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
16 XEN_CONFIGS += mem-map.sxp
17 XEN_CONFIGS += bochsrc
19 # Xen script dir and scripts to go there.
20 XEN_SCRIPT_DIR = /etc/xen/scripts
21 XEN_SCRIPTS = network vif-bridge
22 XEN_SCRIPTS += network-route vif-route
23 XEN_SCRIPTS += block-file
24 XEN_SCRIPTS += block-enbd
26 all:
28 install: all install-initd install-configs install-scripts
30 install-initd:
31 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
32 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
33 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
35 install-configs:
36 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
37 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
38 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
39 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
40 for i in $(XEN_CONFIGS); \
41 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
42 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
43 done
45 install-scripts:
46 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
47 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
48 for i in $(XEN_SCRIPTS); \
49 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
50 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
51 done
53 clean: