mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Description: use INSTALL everywhere Use install(by way of INSTALL variables) to create directories, install programs, and install data files. From: Adam Heath <doogie@brainfood.com> Signed-off-by: ian.pratt@cl.cam.ac.uk
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
INSTALL = install
|
|
INSTALL_DIR = $(INSTALL) -d -m0755
|
|
INSTALL_PROG = $(INSTALL) -m0755
|
|
INSTALL_DATA = $(INSTALL) -m0644
|
|
|
|
# Init scripts.
|
|
XEND_INITD = init.d/xend
|
|
XENDOMAINS_INITD = init.d/xendomains
|
|
|
|
# Xen configuration dir and configs to go there.
|
|
XEN_CONFIG_DIR = /etc/xen
|
|
XEN_CONFIGS = xend-config.sxp
|
|
XEN_CONFIGS += xmexample1
|
|
XEN_CONFIGS += xmexample2
|
|
|
|
# Xen script dir and scripts to go there.
|
|
XEN_SCRIPT_DIR = /etc/xen/scripts
|
|
XEN_SCRIPTS = network vif-bridge
|
|
XEN_SCRIPTS += network-route vif-route
|
|
XEN_SCRIPTS += block-file
|
|
XEN_SCRIPTS += block-enbd
|
|
|
|
all:
|
|
|
|
install: all install-initd install-configs install-scripts
|
|
|
|
install-initd:
|
|
$(INSTALL_DIR) $(prefix)/etc/init.d
|
|
$(INSTALL_PROG) $(XEND_INITD) $(prefix)/etc/init.d
|
|
$(INSTALL_PROG) $(XENDOMAINS_INITD) $(prefix)/etc/init.d
|
|
|
|
install-configs:
|
|
$(INSTALL_DIR) $(prefix)$(XEN_CONFIG_DIR)
|
|
$(INSTALL_DIR) $(prefix)$(XEN_CONFIG_DIR)/auto
|
|
for i in $(XEN_CONFIGS); \
|
|
do [ -a $(prefix)/$(XEN_CONFIG_DIR)/$$i ] || \
|
|
$(INSTALL_DATA) $$i $(prefix)$(XEN_CONFIG_DIR); \
|
|
done
|
|
|
|
install-scripts:
|
|
$(INSTALL_DIR) $(prefix)$(XEN_SCRIPT_DIR)
|
|
for i in $(XEN_SCRIPTS); \
|
|
do [ -a $(prefix)/$()/$$i ] || \
|
|
$(INSTALL_PROG) $$i $(prefix)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
|
|
clean:
|