[PATCH] make distclean tries to delete dirs in tmpfs

Ingo Oeser (ingo.oeser@informatik.tu-chemnitz.de)
Wed, 9 May 2001 20:44:35 +0200


Hi there,

make distclean deletes anything with size 0. This includes
directories, while making the kernel in tmpfs or ramfs.

This patch solves it, by not deleting directories in this rule.

Patch applies to any official kernel and with offsets even to
recent ac series.

--- linux-2.4.2-ac19/Makefile.orig Wed May 9 10:47:04 2001
+++ linux-2.4.2-ac19/Makefile Wed May 9 10:51:04 2001
@@ -415,7 +415,8 @@
$(MAKE) -C Documentation/DocBook mrproper

distclean: mrproper
- rm -f core `find . \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
+ rm -f core `find . \( -not -type d \) -and \
+ \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' -o -name '.SUMS' -o -size 0 \) -print` TAGS tags

Regards

Ingo Oeser

-- 
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
         <<<<<<<<<<<<     been there and had much fun   >>>>>>>>>>>>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/