]> xenbits.xensource.com Git - xen.git/commitdiff
build: use subdir-y in test/Makefile
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 7 Sep 2021 07:30:42 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:30:42 +0000 (09:30 +0200)
This allows Makefile.clean to recurse into livepatch without help.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/test/Makefile

index aaa499664396e056242fa6ef97ce1fc82153ef0d..41e4d7bdb78b5b663cca46b3d56b19de2a8415c6 100644 (file)
@@ -4,15 +4,10 @@ tests all: build
 
 ifneq ($(XEN_TARGET_ARCH),x86_32)
 # Xen 32-bit x86 hypervisor no longer supported, so has no test livepatches
-SUBDIRS += livepatch
+subdir-y += livepatch
 endif
 
 install build subtree-force-update uninstall: %:
-       set -e; for s in $(SUBDIRS); do \
+       set -e; for s in $(subdir-y); do \
                $(MAKE) -f $(BASEDIR)/Rules.mk -C $$s $*; \
        done
-
-clean::
-       set -e; for s in $(SUBDIRS); do \
-               $(MAKE) -f $(BASEDIR)/Rules.mk -C $$s $@; \
-       done