From: Tiezhu Yang Date: Thu, 13 Feb 2020 04:16:08 +0000 (+0800) Subject: spi: spidev_test: Remove the whole "include" directory when make clean X-Git-Tag: v5.10.7~2120^2~42^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aea7afd9079f2e43b05790241d748ff0537ec917;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/1581567368-8055-4-git-send-email-yangtiezhu@loongson.cn Signed-off-by: Mark Brown --- diff --git a/tools/spi/Makefile b/tools/spi/Makefile index 5c342e6..2249a15 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)