[PATCH] tools: iio: rm include dir when make clean

zhangjiao2 posted 1 patch 4 days, 7 hours ago
tools/iio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] tools: iio: rm include dir when make clean
Posted by zhangjiao2 4 days, 7 hours ago
From: zhang jiao <zhangjiao2@cmss.chinamobile.com>

rm include dir when make clean

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
---
 tools/iio/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/iio/Makefile b/tools/iio/Makefile
index 3bcce0b7d10f..15c2f472666a 100644
--- a/tools/iio/Makefile
+++ b/tools/iio/Makefile
@@ -57,7 +57,7 @@ $(OUTPUT)iio_generic_buffer: $(IIO_GENERIC_BUFFER_IN)
 
 clean:
 	rm -f $(ALL_PROGRAMS)
-	rm -rf $(OUTPUT)include/linux/iio
+	rm -rf $(OUTPUT)include
 	find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete
 
 install: $(ALL_PROGRAMS)
-- 
2.33.0
Re: [PATCH] tools: iio: rm include dir when make clean
Posted by Andy Shevchenko 4 days, 3 hours ago
On Fri, Sep 5, 2025 at 12:16 PM zhangjiao2
<zhangjiao2@cmss.chinamobile.com> wrote:

> rm include dir when make clean

This needs work to make it English proper text with all grammar and
punctuation being respected.

...

>  clean:
>         rm -f $(ALL_PROGRAMS)
> -       rm -rf $(OUTPUT)include/linux/iio
> +       rm -rf $(OUTPUT)include

What?! Please, explain "why?" in the commit message.

>         find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete -o -name '\.*.cmd' -delete

-- 
With Best Regards,
Andy Shevchenko