[patch-2.6.x] fix for make clean and make mrproper

From: Tigran Aivazian
Date: Thu Dec 09 2004 - 18:24:32 EST


Hello,

On IA64 architecture the "make clean" does not correspond to its definition:

# make clean Delete most generated files
# Leave enough to build external modules

because it deletes include/asm-ia64/offsets.h file which can easily be included by a module, e.g. via this header path:

In file included from include/linux/thread_info.h:21,
from include/linux/spinlock.h:12,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/asm/uaccess.h:37,

So the fix is to remove this file from CLEAN_FILES and add it to MRPROPER_FILES, so that it is NOT removed by "make clean" and removed by "make mrproper". The patch is enclosed.

Kind regards
Tigran

--- arch/ia64/Makefile.0 2004-12-08 23:19:44.429993868 +0000
+++ arch/ia64/Makefile 2004-12-08 23:18:57.238588196 +0000
@@ -87,7 +87,9 @@
archclean:
$(Q)$(MAKE) $(clean)=$(boot)

-CLEAN_FILES += include/asm-ia64/.offsets.h.stamp include/asm-ia64/offsets.h vmlinux.gz bootloader
+CLEAN_FILES += include/asm-ia64/.offsets.h.stamp vmlinux.gz bootloader
+
+MRPROPER_FILES += include/asm-ia64/offsets.h

prepare: include/asm-ia64/offsets.h

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