All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [BUG FIX] kbuild distclean srctree fix
@ 2004-06-16 13:48 Coywolf Qi Hunt
  0 siblings, 0 replies; only message in thread
From: Coywolf Qi Hunt @ 2004-06-16 13:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, kai, sam

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-16 13:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-16 13:48 [PATCH] [BUG FIX] kbuild distclean srctree fix Coywolf Qi Hunt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.