diff mbox

Makefile: Use find's -delete instead of -exec rm {} \;

Message ID 20180419051930.25468-1-uwe@kleine-koenig.org (mailing list archive)
State Rejected, archived
Headers show

Commit Message

Uwe Kleine-König April 19, 2018, 5:19 a.m. UTC
find knows how to delete files without the need to fork.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luc Van Oostenryck April 19, 2018, 8 a.m. UTC | #1
On Thu, Apr 19, 2018 at 07:19:30AM +0200, Uwe Kleine-König wrote:
> find knows how to delete files without the need to fork.
> 
> Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>

Acked-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>


FYI, I've added this patch to my tree at:
	git://github.com/lucvoo/sparse-dev.git tip

This tree already contains the equivalent of the two other patches
you just sent.

Cheers,
-- Luc
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/Makefile b/Makefile
index faa6ea8d4551..c6bfe035076b 100644
--- a/Makefile
+++ b/Makefile
@@ -243,4 +243,4 @@  clean-check:
 	                 -o -name "*.c.error.got" \
 	                 -o -name "*.c.error.diff" \
 			 -o -name "*.o" \
-	                 \) -exec rm {} \;
+	                 \) -delete