Skip to contentSkip to conversation

Patches for Cleaning offsets.h/print_offsets.h/print_offsets.s

Linux-ia64 Yu, Fenghua 1 participant 1 message Jan 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

2.5.52 and tpc.0.18 can't clean arch/ia64/tools/offsets.h, print_offsets.h, print_offsets.s under arch/ia64/tools even with make distclean/mrproper/clean. The feature is working for 2.4.20.

2.5.52 is supposed to clean the files by "make clean". Tpc.0.18 is supposed to clean the files by "make mrproper". Thus, they have different fix solutions.

Thanks.

-Fenghua

arch/ia64/tools/Makefile +1 -1
diff -Nur A/arch/ia64/tools/Makefile B/arch/ia64/tools/Makefile
@@ -4,7 +4,7 @@
 
 all: 
 
-mrproper:
+mrproper: clean
 
 clean:
 	rm -f print_offsets.s print_offsets offsets.h
arch/ia64/Makefile +1 -0
diff -Nur A/arch/ia64/Makefile B/arch/ia64/Makefile
@@ -61,6 +61,7 @@
 archmrproper:
 archclean:
 	$(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/ia64/boot
+	$(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/ia64/tools
 
 CLEAN_FILES += include/asm-ia64/offsets.h vmlinux.gz bootloader
 
arch/ia64/tools/Makefile +1 -8
diff -Nur A/arch/ia64/tools/Makefile B/arch/ia64/tools/Makefile
@@ -4,14 +4,7 @@
 
 src = $(obj)
 
-all:
-
-fastdep:
-
-mrproper: clean
-
-clean:
-	rm -f $(obj)/print_offsets.s $(obj)/print_offsets $(obj)/offsets.h
+clean-files := print_offsets.s print_offsets offsets.h
 
 $(TARGET): $(obj)/offsets.h
 	@if ! cmp -s $(obj)/offsets.h ${TARGET}; then	\