summaryrefslogtreecommitdiff
path: root/tools/spi/Makefile
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-04-07 06:35:12 +0300
committerMark Brown <broonie@kernel.org>2020-04-14 20:36:29 +0300
commit0b93dd98d6d5ba93f834113994dbc8f291447dae (patch)
treed16d444e05c75cc65fb05bb3007e7ebcf48c98fe /tools/spi/Makefile
parentcb75b0c4dee881fe9d486e725b778395ce0b0426 (diff)
downloadlinux-0b93dd98d6d5ba93f834113994dbc8f291447dae.tar.xz
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>
Diffstat (limited to 'tools/spi/Makefile')
-rw-r--r--tools/spi/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/spi/Makefile b/tools/spi/Makefile
index 2249a1546cc1..ada881afb489 100644
--- a/tools/spi/Makefile
+++ b/tools/spi/Makefile
@@ -52,7 +52,9 @@ $(OUTPUT)spidev_fdx: $(SPIDEV_FDX_IN)
clean:
rm -f $(ALL_PROGRAMS)
rm -rf $(OUTPUT)include/
- find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
+ find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete
+ find $(if $(OUTPUT),$(OUTPUT),.) -name '\.*.o.d' -delete
+ find $(if $(OUTPUT),$(OUTPUT),.) -name '\.*.o.cmd' -delete
install: $(ALL_PROGRAMS)
install -d -m 755 $(DESTDIR)$(bindir); \