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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



find knows how to delete files without the need to fork.

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

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
-- 
2.17.0

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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux