kbuild distclean srctree fix
PATCH 1/1 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
===============================================================
Makefile +0 -0
@@ -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 \
Signature · 2 lines
Coywolf Qi Hunt Admin of http://GreatCN.org and http://LoveCN.org