2.5.40 kbuild bug: mrproper removes files it shouldn't remove

2.5.40 kbuild bug: mrproper removes files it shouldn't remove

Post by Mikael Pettersso » Tue, 08 Oct 2002 18:10:08



'make mrproper' incorrectly deletes *~-style editor backup files
from the top-level directory. This bug was introduced in 2.5.29
when the top-level Makefile was changed to remain in the top-level
directory when invoking DocBook's Makefile:

(snippet from patch-2.5.29):

>--- a/Makefile      Fri Jul 26 19:58:50 2002
>+++ b/Makefile      Fri Jul 26 19:58:50 2002

>            -name .\*.tmp -o -name .\*.d \) -type f -print \
>            | grep -v lxdialog/ | xargs rm -f



> mrproper: clean archmrproper


The problem is that DocBook's 'make clean' rule contains

clean:


so the rm now removes files from the wrong directory. Not good.

Since the top-level Makefile removes all core files, I suggest
simply removing the problematic rm line. Patch below.

/Mikael

--- linux-2.5.40/Documentation/DocBook/Makefile.~1~     Sat Aug  3 00:40:00 2002

 clean:





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.40 kbuild bug: mrproper removes files it shouldn't remove

Post by John Levo » Tue, 08 Oct 2002 19:20:03



> 'make mrproper' incorrectly deletes *~-style editor backup files

A vaguely related long time irritation :

cp .config .config-phew-saved-it
make mrproper

whoops !

regards
john

--
"I will eat a * tire to the music of The Flight of the Bumblebee"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/