[PATCH] [BUG FIX] kbuild distclean srctree fix
From: Coywolf Qi Hunt
Date: Wed Jun 16 2004 - 08:50:53 EST
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/