summaryrefslogtreecommitdiff
path: root/tools/spi
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-02-13 07:16:08 +0300
committerMark Brown <broonie@kernel.org>2020-02-13 16:17:59 +0300
commitaea7afd9079f2e43b05790241d748ff0537ec917 (patch)
treef3310cccaadc961be2d7ab35ba597938c486c4d4 /tools/spi
parent470a072e12200576788dc622d58894609feae2d7 (diff)
downloadlinux-aea7afd9079f2e43b05790241d748ff0537ec917.tar.xz
spi: spidev_test: Remove the whole "include" directory when make clean
In the current code, it only removes "include/linux/spi/spidev.h" file when make clean and there still exists useless "include/linux/spi/" directory, just remove it. Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Link: https://lore.kernel.org/r/1581567368-8055-4-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/spi')
-rw-r--r--tools/spi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spi/Makefile b/tools/spi/Makefile
index 5c342e655e55..2249a1546cc1 100644
--- a/tools/spi/Makefile
+++ b/tools/spi/Makefile
@@ -51,7 +51,7 @@ $(OUTPUT)spidev_fdx: $(SPIDEV_FDX_IN)
clean:
rm -f $(ALL_PROGRAMS)
- rm -f $(OUTPUT)include/linux/spi/spidev.h
+ rm -rf $(OUTPUT)include/
find $(if $(OUTPUT),$(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete
install: $(ALL_PROGRAMS)