]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
Makefile: fix install-tests
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 26 Feb 2020 16:41:02 +0000 (17:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 16:41:02 +0000 (17:41 +0100)
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>
Makefile
xen/Makefile

index 512d6b73c8989921f91a7b3e1382feeaa2edc83a..9ad2602f63f0fefd54b81408efcb07a7bc6efe5a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -155,13 +155,11 @@ install-docs:
 # We only have build-tests install-tests, not uninstall-tests etc.
 .PHONY: build-tests
 build-tests: build-xen
-       export BASEDIR=$(XEN_ROOT)/xen; \
-       $(MAKE) -f $$BASEDIR/Rules.mk -C xen/test build
+       $(MAKE) -C xen tests
 
 .PHONY: install-tests
 install-tests: install-xen
-       export BASEDIR=$(XEN_ROOT)/xen; \
-       $(MAKE) -f $$BASEDIR/Rules.mk -C xen/test install
+       $(MAKE) -C xen $@
 
 # build xen and the tools and place them in the install
 # directory. 'make install' should then copy them to the normal system
index c326fee5880e163469bf25872778003764b3c58c..72bc899246226195b9b7fa3945d979c06fe31770 100644 (file)
@@ -90,6 +90,9 @@ _install: $(TARGET)$(CONFIG_XEN_INSTALL_SUFFIX)
 .PHONY: _tests
 _tests:
        $(MAKE) -f $(BASEDIR)/Rules.mk -C test tests
+.PHONY: install-tests
+install-tests:
+       $(MAKE) -f $(BASEDIR)/Rules.mk -C test install
 
 .PHONY: _uninstall
 _uninstall: D=$(DESTDIR)