build: clean common temporary files from root makefile
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 13 Oct 2021 15:51:12 +0000 (17:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Oct 2021 15:51:12 +0000 (17:51 +0200)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile
xen/scripts/Makefile.clean

index 5d011016621b3e86ca60ea2721b2e4bd7ff4565f..a3189eb47ce5aa3290517ce376c551573de819ac 100644 (file)
@@ -379,6 +379,7 @@ _clean: delete-unfresh-files
        $(MAKE) $(clean) test
        $(MAKE) $(kconfig) clean
        find . \( -name "*.o" -o -name ".*.d" -o -name ".*.d2" \
+               -o -name ".*.o.tmp" -o -name "*~" -o -name "core" \
                -o -name "*.gcno" -o -name ".*.cmd" -o -name "lib.a" \) -exec rm -f {} \;
        rm -f include/asm $(TARGET) $(TARGET).gz $(TARGET).efi $(TARGET).efi.map $(TARGET)-syms $(TARGET)-syms.map *~ core
        rm -f asm-offsets.s include/asm-*/asm-offsets.h
index 027c200c0efc131e8e4a6635fcdfe54bcb605a62..8582ec35e4da6d597d073fb79cf457997c882d6e 100644 (file)
@@ -14,10 +14,8 @@ include Makefile
 subdir-all := $(subdir-y) $(subdir-n) $(subdir-) \
               $(patsubst %/,%, $(filter %/, $(obj-y) $(obj-n) $(obj-)))
 
-DEPS_RM = $(DEPS) $(DEPS_INCLUDE)
 .PHONY: clean
-clean:: $(subdir-all)
-       rm -f *.o .*.o.tmp *~ core $(DEPS_RM)
+clean:: $(subdir-all) ;
 
 # Descending
 # ---------------------------------------------------------------------------