kbuild: make clean removes *.o.* as well
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 6 Jun 2008 21:47:09 +0000 (01:47 +0400)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 25 Jul 2008 20:12:17 +0000 (22:12 +0200)
Those are left presumably from aborted ccache(1) compilations:

arch/x86/kernel/.tmp_io_apic_64.o.T5veul
arch/x86/kvm/.tmp_x86.o.SZWn69
arch/x86/mm/.tmp_pgtable.o.sL1LTf
drivers/ieee1394/.tmp_ieee1394_transactions.o.bUj6o1
drivers/infiniband/hw/mlx4/.tmp_main.o.vy0ep6

BTW, with git there is nice way to check for such nuisainces:

make mrproper
git-ls-files -o

should give empty output.

More precise wildcard spec from: Jan Engelhardt <jengelh@medozas.de>

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Jan Engelhardt <jengelh@medozas.de>
Makefile

index 2f0136401ba00ca0628991cd24f75e2343c2c847..3f0a3ca5be8ff463ca3d5ff99854c1c9e78ea3aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1160,7 +1160,7 @@ clean: archclean $(clean-dirs)
                \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
                -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
                -o -name '*.symtypes' -o -name 'modules.order' \
-               -o -name 'Module.markers' \) \
+               -o -name 'Module.markers' -o -name '.tmp_*.o.*' \) \
                -type f -print | xargs rm -f
 
 # mrproper - Delete all generated files, including .config