Commit dd47df98 authored by Coywolf Qi Hunt's avatar Coywolf Qi Hunt Committed by Linus Torvalds

[PATCH] kbuild: distclean srctree fix

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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0a62b8cf
...@@ -869,7 +869,7 @@ mrproper: clean archmrproper $(mrproper-dirs) ...@@ -869,7 +869,7 @@ mrproper: clean archmrproper $(mrproper-dirs)
.PHONY: distclean .PHONY: distclean
distclean: mrproper distclean: mrproper
@find . $(RCS_FIND_IGNORE) \ @find $(srctree) $(RCS_FIND_IGNORE) \
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \ -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -size 0 \ -o -name '.*.rej' -o -size 0 \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment