2004-06-16 13:49:24

by Coywolf Qi Hunt

[permalink] [raw]
Subject: [PATCH] [BUG FIX] kbuild distclean srctree fix

Hello all,

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.
.
This simple patch fixes the problem.

-- coywolf

===============================================================

--- linux-2.6.7/Makefile Wed Jun 9 01:07:00 2004
+++ linux-2.6.7-cy/Makefile Wed Jun 16 21:33:57 2004
@@ -841,7 +841,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 \


--
Coywolf Qi Hunt
Admin of http://GreatCN.org and http://LoveCN.org