Re: [PATCH 4/5] kbuild: make clean improved

From: Sam Ravnborg
Date: Mon Jun 14 2004 - 23:28:45 EST


On Mon, Jun 14, 2004 at 02:38:35PM -0700, Tom Rini wrote:
>
> I'd agrue the exact opposite. If you're starting from scratch (new
> patchset, etc, where you might do something like mv mm/slab.c.old
> mm/slab.c) use 'distclean' or 'mrproper'. If you just want to do a
> 'make clean' because you can't be sure you trust the build system to get
> things right, you don't want the version being reset.

I follow both Russell's and your points.
So let's stick to the historic behaviour then.
Updated hand-edited patch below.

Sam

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/06/14 22:09:53+02:00 sam@xxxxxxxxxxxxxxxxx
# kbuild: make clean deletes a few more unneeded files
#
# Make clean shall leave behind only what is needed to build
# external modules. A few more files can be deleted and modules may still be
# build successfully.
# Originally noticed by Andreas Gruenbach
#
# Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
#
# Makefile
# 2004/06/14 22:09:39+02:00 sam@xxxxxxxxxxxxxxxxx +2 -2
# kbuild: make clean deletes a few more unneeded files
#
# Make clean shall leave behind only what is needed to build
# external modules. A few more files can be deleted and modules may still be
# build successfully.
# Originally noticed by Andreas Gruenbach
#
# Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
#
diff -Nru a/Makefile b/Makefile
--- a/Makefile 2004-06-14 22:25:31 +02:00
+++ b/Makefile 2004-06-14 22:25:31 +02:00
@@ -796,12 +796,12 @@

# Directories & files removed with 'make clean'
CLEAN_DIRS += $(MODVERDIR)
-CLEAN_FILES += vmlinux System.map \
+CLEAN_FILES += vmlinux System.map .config.old \
.tmp_kallsyms* .tmp_version .tmp_vmlinux*

# Directories & files removed with 'make mrproper'
MRPROPER_DIRS += include/config include2
-MRPROPER_FILES += .config .config.old include/asm \
+MRPROPER_FILES += .config include/asm .version \
include/linux/autoconf.h include/linux/version.h \
Module.symvers tags TAGS cscope*

-
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/