From: Coywolf Qi Hunt <coywolf@greatcn.org>

I just find a bug that ``make distclean'' cannot remove the editor backup
files and the like when using build directory.  That is because the find
command is improperly searching the build directory instead of the
$(srctree) it should.

Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN Makefile~kbuild-distclean-srctree-fix Makefile
--- 25/Makefile~kbuild-distclean-srctree-fix	2004-06-24 02:39:51.000000000 -0700
+++ 25-akpm/Makefile	2004-06-24 11:54:51.993235392 -0700
@@ -890,7 +890,7 @@ mrproper: clean archmrproper $(mrproper-
 .PHONY: distclean
 
 distclean: mrproper
-	@find . $(RCS_FIND_IGNORE) \
+	@find $(srctree) $(RCS_FIND_IGNORE) \
 	 	\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
 		-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
 	 	-o -name '.*.rej' -o -size 0 \
_