mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
In tools/hotplug/common/Makefile, install-scripts depends on genpath. So add its dependency. Otherwise parallel build sometimes fails as follows. genpath and install-scripts command are being run simultaneously. So When install-scripts tries to install it, it can be under creation. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
40 lines
795 B
Makefile
40 lines
795 B
Makefile
XEN_ROOT = ../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
HOTPLUGPATH="hotplugpath.sh"
|
|
|
|
# OS-independent hotplug scripts go in this directory
|
|
|
|
# Xen scripts to go there.
|
|
XEN_SCRIPTS = $(HOTPLUGPATH)
|
|
XEN_SCRIPT_DATA =
|
|
|
|
genpath-target = $(call buildmakevars2file,$(HOTPLUGPATH))
|
|
$(eval $(genpath-target))
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build: genpath
|
|
|
|
.PHONY: install
|
|
install: all install-scripts
|
|
|
|
.PHONY: install-scripts
|
|
install-scripts: build
|
|
[ -d $(DESTDIR)$(XEN_SCRIPT_DIR) ] || \
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_SCRIPT_DIR)
|
|
set -e; for i in $(XEN_SCRIPTS); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
set -e; for i in $(XEN_SCRIPT_DATA); \
|
|
do \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(XEN_SCRIPT_DIR); \
|
|
done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(HOTPLUGPATH)
|