Makefile: fix install-tests

The top-level makefile make uses of internal implementation detail of
the xen build system. Avoid that by creating a new target
"install-tests" in xen/Makefile, and by fixing the top-level Makefile
to not call xen/Rules.mk anymore.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Anthony PERARD authored and Jan Beulich committed 2020-02-26 17:41:02 +01:00
1 parent 2d2cca9d15
commit 8ec7a9e310
2 files changed
+5 -4

No files matched your search

+2 -4
View File
@@ -155,13 +155,11 @@ install-docs:
# We only have build-tests install-tests, not uninstall-tests etc. # We only have build-tests install-tests, not uninstall-tests etc.
.PHONY: build-tests .PHONY: build-tests
build-tests: build-xen build-tests: build-xen
export BASEDIR=$(XEN_ROOT)/xen; \ $(MAKE) -C xen tests
$(MAKE) -f $$BASEDIR/Rules.mk -C xen/test build
.PHONY: install-tests .PHONY: install-tests
install-tests: install-xen install-tests: install-xen
export BASEDIR=$(XEN_ROOT)/xen; \ $(MAKE) -C xen $@
$(MAKE) -f $$BASEDIR/Rules.mk -C xen/test install
# build xen and the tools and place them in the install # build xen and the tools and place them in the install
# directory. 'make install' should then copy them to the normal system # directory. 'make install' should then copy them to the normal system
+3
View File
@@ -90,6 +90,9 @@ _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
.PHONY: _tests .PHONY: _tests
_tests: _tests:
$(MAKE) -f $(BASEDIR)/Rules.mk -C test tests $(MAKE) -f $(BASEDIR)/Rules.mk -C test tests
.PHONY: install-tests
install-tests:
$(MAKE) -f $(BASEDIR)/Rules.mk -C test install
.PHONY: _uninstall .PHONY: _uninstall
_uninstall: D=$(DESTDIR) _uninstall: D=$(DESTDIR)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.