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>
# 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
.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)