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

Sam Ravnborg
2004-06-14T20:43:12Z

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/06/14 22:09:53+02:00 sam@mars.ravnborg.org
# 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@ravnborg.org>
#
# Makefile
# 2004/06/14 22:09:39+02:00 sam@mars.ravnborg.org +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@ravnborg.org>
#
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 .version .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 .version \
+MRPROPER_FILES += .config include/asm \
include/linux/autoconf.h include/linux/version.h \
Module.symvers tags TAGS cscope*