build: fix clean targets when subdir-y is used
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 7 Sep 2021 07:30:25 +0000 (09:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 07:30:25 +0000 (09:30 +0200)
commit0c58617f21c9d841190222c54ee7a64845320acd
tree78d9a63ba1ce369e5242eb361a9b5abefd12d9bf
parent1c52edfa2cd279ac34f8d038ada6a88ca23b2612
build: fix clean targets when subdir-y is used

The make variable $(subdir-y) isn't used yet but will be in a
following patch. Anything in $(subdir-y) doesn't to have a '/' as
suffix as we already now it's a directory.

Rework the rules so that it doesn't matter whether there is a '/' or
not. It also mimic more closely to the way Linux's Kbuild descend in
subdirectories.

FORCE phony target isn't needed anymore running clean, so it can be
removed.

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