mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
The "install" rules depends on both "all" and "subdirs-install" and "all" depends on "subdirs-all". This leads the "install" rules to call both "subdirs-all" and "subdirs-install" which create a race with two concurrent `make` within the same directory (systemd) trying to make the same things (xen.conf) and failing. Ultimatly, "install" should only depend on the things it needs to install, and not on "all". Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Tested-by: Olaf Hering <olaf@aepfle.de> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
45 lines
952 B
Makefile
45 lines
952 B
Makefile
XEN_ROOT = $(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
# Xen script dir and scripts to go there.
|
|
XEN_SCRIPTS =
|
|
XEN_SCRIPTS += block
|
|
XEN_SCRIPTS += vif-bridge
|
|
XEN_SCRIPTS += vif-ip
|
|
|
|
XEN_SCRIPT_DATA =
|
|
XEN_RCD_PROG = rc.d/xencommons rc.d/xendomains rc.d/xen-watchdog
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
.PHONY: build
|
|
build:
|
|
|
|
.PHONY: install
|
|
install: install-scripts install-rcd
|
|
|
|
.PHONY: install-scripts
|
|
install-scripts:
|
|
$(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: install-rcd
|
|
install-rcd:
|
|
$(INSTALL_DIR) $(DESTDIR)$(INITD_DIR)
|
|
set -e; for i in $(XEN_RCD_PROG); \
|
|
do \
|
|
$(INSTALL_PROG) $$i $(DESTDIR)$(INITD_DIR); \
|
|
done
|
|
$(INSTALL_DATA) ../common/hotplugpath.sh $(DESTDIR)$(INITD_DIR)/xen-hotplugpath.sh
|
|
|
|
.PHONY: clean
|
|
clean:
|