]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spidev_test: Remove hidden temporary file when make clean
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Apr 2020 03:35:12 +0000 (11:35 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 17:36:29 +0000 (18:36 +0100)
commit8b11f8d6b8e15e02e6886a177e3268b5c8b17c4c
treed16d444e05c75cc65fb05bb3007e7ebcf48c98fe
parent4040c50107fa986875291b17dcc6e0c9d0bc04c5
spi: spidev_test: Remove hidden temporary file when make clean

In the current code, it only removes *.o and .*.o.d file when make clean,
there still exists useless .*.o.cmd file, just remove it.

Without this patch:

[yangtiezhu@linux spi]$ make
[yangtiezhu@linux spi]$ make clean
[yangtiezhu@linux spi]$ ls -1 .*.o.cmd
.spidev_fdx-in.o.cmd
.spidev_fdx.o.cmd
.spidev_test-in.o.cmd
.spidev_test.o.cmd

With this patch:

[yangtiezhu@linux spi]$ make
[yangtiezhu@linux spi]$ make clean
[yangtiezhu@linux spi]$ ls -1 .*.o.cmd
ls: cannot access .*.o.cmd: No such file or directory

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Link: https://lore.kernel.org/r/1586230512-5507-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/Makefile