[PATCH] 2.5.44 mrproper removes editor backup files

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Sun Oct 20 2002 - 13:01:54 EST


Contrary to years of history and several explicit comments in
Makefile that mrproper != distclean, 2.5.44 merged the two
which causes mrproper to incorrectly remove editor backup files.
Suggested fix below -- works for me.

/Mikael

--- linux-2.5.44/Makefile.~1~ 2002-10-20 18:51:07.000000000 +0200
+++ linux-2.5.44/Makefile 2002-10-20 19:36:20.000000000 +0200
@@ -712,7 +712,11 @@
 #
 quiet_cmd_mrproper = RM $$(MRPROPER_DIRS) + $$(MRPROPER_FILES)
 cmd_mrproper = rm -rf $(MRPROPER_DIRS) && rm -f $(MRPROPER_FILES)
-mrproper distclean: clean archmrproper
+mrproper: clean archmrproper
+ @echo ' Making $@ in the srctree'
+ $(call cmd,mrproper)
+
+distclean: mrproper
         @echo ' Making $@ in the srctree'
         @find . $(RCS_FIND_IGNORE) \
                  \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
@@ -720,7 +724,6 @@
                  -o -name '.*.rej' -o -size 0 \
                 -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
                 -type f -print | xargs rm -f
- $(call cmd,mrproper)
 
 # Generate tags for editors
 # ---------------------------------------------------------------------------
-
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/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:50 EST