[PATCH] Makefile: Clean up auto-generated Kbuild and Config.in files

Peter Tyser ptyser at xes-inc.com
Thu May 13 23:45:41 UTC 2010


Previously these auto-generated files were left behind after a 'make
mrproper' was ran.

Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
---
 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index da8f7d7..3b577fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1001,6 +1001,10 @@ $(mrproper-dirs):
 mrproper: clean archmrproper $(mrproper-dirs)
 	$(call cmd,rmdirs)
 	$(call cmd,rmfiles)
+	@find . \( -name 'Config.src' \) -type f -print | \
+		sed 's/.src/.in/' | xargs rm -f
+	@find . \( -name 'Kbuild.src' \) -type f -print | \
+		sed 's/.src//' | xargs rm -f
 
 # distclean
 #
-- 
1.6.2.1



More information about the busybox mailing list