Makefile: Clean up auto-generated Kbuild and Config.in files
authorPeter Tyser <ptyser@xes-inc.com>
Sun, 16 May 2010 00:48:21 +0000 (02:48 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 May 2010 00:48:21 +0000 (02:48 +0200)
Previously these auto-generated files were left behind after a 'make
mrproper' was ran.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile

index da8f7d7b684660d37e683e6aac1a9c260826106f..14f5cd14920714bd52e52adb2e44626748c2d4a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1001,6 +1001,8 @@ $(mrproper-dirs):
 mrproper: clean archmrproper $(mrproper-dirs)
        $(call cmd,rmdirs)
        $(call cmd,rmfiles)
+       @find -name Config.src | sed 's/.src$/.in/' | xargs -r rm -f
+       @find -name Kbuild.src | sed 's/.src$//' | xargs -r rm -f
 
 # distclean
 #