xen-vtx-unstable

annotate tools/examples/Makefile @ 6774:4d899a738d59

merge?
author cl349@firebug.cl.cam.ac.uk
date Tue Sep 13 15:05:49 2005 +0000 (2005-09-13)
parents adb70d525dbd cac138ea9284
children e7c7196fa329 8ca0f98ba8e2
rev   line source
kaf24@6470 1 XEN_ROOT = ../../
kaf24@6470 2 include $(XEN_ROOT)/tools/Rules.mk
kaf24@6470 3
iap10@3491 4 INSTALL = install
iap10@3491 5 INSTALL_DIR = $(INSTALL) -d -m0755
iap10@3491 6 INSTALL_PROG = $(INSTALL) -m0755
iap10@3491 7 INSTALL_DATA = $(INSTALL) -m0644
iap10@1061 8
mjw@2289 9 # Init scripts.
mjw@2289 10 XEND_INITD = init.d/xend
cl349@2688 11 XENDOMAINS_INITD = init.d/xendomains
iap10@1061 12
mjw@2289 13 # Xen configuration dir and configs to go there.
mjw@2289 14 XEN_CONFIG_DIR = /etc/xen
mjw@2289 15 XEN_CONFIGS = xend-config.sxp
iap10@2308 16 XEN_CONFIGS += xmexample1
iap10@2308 17 XEN_CONFIGS += xmexample2
iap10@3390 18 XEN_CONFIGS += xmexample.vmx
mjw@1723 19
mjw@2289 20 # Xen script dir and scripts to go there.
mjw@2289 21 XEN_SCRIPT_DIR = /etc/xen/scripts
iap10@6156 22 XEN_SCRIPTS = network-bridge vif-bridge
kaf24@3431 23 XEN_SCRIPTS += network-route vif-route
cl349@6742 24 XEN_SCRIPTS += block-phy
mwilli2@2579 25 XEN_SCRIPTS += block-file
mwilli2@2579 26 XEN_SCRIPTS += block-enbd
mjw@1623 27
kaf24@6762 28 XEN_BOOT_DIR = /usr/$(LIBDIR)/xen/boot
kaf24@5624 29 XEN_BOOT = mem-map.sxp
kaf24@5624 30
cl349@6572 31 XEN_HOTPLUG_DIR = /etc/hotplug
cl349@6572 32 XEN_HOTPLUG_SCRIPTS = xen-backend.agent
cl349@6419 33
iap10@1061 34 all:
doogie@4109 35 build:
iap10@1061 36
cl349@6419 37 install: all install-initd install-configs install-scripts install-boot \
cl349@6419 38 install-hotplug
mjw@1623 39
kaf24@6762 40 xmexample.vmx: xmexample.vmx.in
kaf24@6762 41 sed -e 's/@@LIBDIR@@/$(LIBDIR)/' < $< > $@
kaf24@6762 42
mjw@1623 43 install-initd:
cl349@3561 44 [ -d $(DESTDIR)/etc/init.d ] || $(INSTALL_DIR) $(DESTDIR)/etc/init.d
iap10@3499 45 $(INSTALL_PROG) $(XEND_INITD) $(DESTDIR)/etc/init.d
iap10@3499 46 $(INSTALL_PROG) $(XENDOMAINS_INITD) $(DESTDIR)/etc/init.d
mjw@1623 47
kaf24@6762 48 install-configs: $(XEN_CONFIGS)
cl349@3561 49 [ -d $(DESTDIR)$(XEN_CONFIG_DIR) ] || \
cl349@3561 50 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
cl349@3561 51 [ -d $(DESTDIR)$(XEN_CONFIG_DIR)/auto ] || \
cl349@3561 52 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
mjw@1723 53 for i in $(XEN_CONFIGS); \
kaf24@3537 54 do [ -a $(DESTDIR)$(XEN_CONFIG_DIR)/$$i ] || \
iap10@3499 55 $(INSTALL_DATA) $$i $(DESTDIR)$(XEN_CONFIG_DIR); \
kaf24@1270 56 done
mjw@1623 57
mjw@1723 58 install-scripts:
cl349@3561 59 [ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
cl349@3561 60 $(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
mjw@1723 61 for i in $(XEN_SCRIPTS); \
kaf24@3537 62 do [ -a $(DESTDIR)$(XEN_SCRIPT_DIR)/$$i ] || \
iap10@3499 63 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
mjw@1623 64 done
mjw@1623 65
kaf24@5624 66 install-boot:
kaf24@5624 67 [ -d $(DESTDIR)$(XEN_BOOT_DIR) ] || \
kaf24@5624 68 $(INSTALL_DIR) $(DESTDIR)$(XEN_BOOT_DIR)
kaf24@5624 69 for i in $(XEN_BOOT); \
kaf24@5624 70 do [ -a $(DESTDIR)$(XEN_BOOT_DIR)/$$i ] || \
kaf24@5624 71 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_BOOT_DIR); \
kaf24@5624 72 done
kaf24@5624 73
cl349@6419 74 install-hotplug:
cl349@6419 75 [ -d $(DESTDIR)$(XEN_HOTPLUG_DIR) ] || \
cl349@6419 76 $(INSTALL_DIR) $(DESTDIR)$(XEN_HOTPLUG_DIR)
cl349@6419 77 for i in $(XEN_HOTPLUG_SCRIPTS); \
cl349@6587 78 do \
cl349@6419 79 $(INSTALL_PROG) $$i $(DESTDIR)$(XEN_HOTPLUG_DIR); \
cl349@6419 80 done
cl349@6419 81
iap10@1061 82 clean:
kaf24@6762 83 $(RM) xmexample.vmx