* [PATCH] 2.5.44 mrproper removes editor backup files
@ 2002-10-20 18:01 Mikael Pettersson
2002-10-20 18:27 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Pettersson @ 2002-10-20 18:01 UTC (permalink / raw)
To: kai; +Cc: linux-kernel
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
# ---------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.5.44 mrproper removes editor backup files
2002-10-20 18:01 [PATCH] 2.5.44 mrproper removes editor backup files Mikael Pettersson
@ 2002-10-20 18:27 ` Sam Ravnborg
0 siblings, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2002-10-20 18:27 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: kai, linux-kernel
On Sun, Oct 20, 2002 at 08:01:54PM +0200, Mikael Pettersson wrote:
> 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.
Why do you need three levels of cleaning?
In other words what is it that make clean failed to clean in your case.
I know that we always used to say: make mrproper can cure everything.
But make clean starts to get the power of make mrproper.
It makes sense to kill one of them, but make help needs an update though.
You could argue if distclean=mrproper or mrproper=clean.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] 2.5.44 mrproper removes editor backup files
@ 2002-10-20 20:36 Mikael Pettersson
0 siblings, 0 replies; 3+ messages in thread
From: Mikael Pettersson @ 2002-10-20 20:36 UTC (permalink / raw)
To: sam; +Cc: kai, linux-kernel
On Sun, 20 Oct 2002 20:27:18 +0200, Sam Ravnborg wrote:
> On Sun, Oct 20, 2002 at 08:01:54PM +0200, Mikael Pettersson wrote:
> > 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.
>
> Why do you need three levels of cleaning?
> In other words what is it that make clean failed to clean in your case.
I only use mrproper myself. Always have. Over the years I've seen
too many build failures for others caused by insufficient cleaning
to really trust plain clean.
> I know that we always used to say: make mrproper can cure everything.
> But make clean starts to get the power of make mrproper.
> It makes sense to kill one of them, but make help needs an update though.
> You could argue if distclean=mrproper or mrproper=clean.
Changing the behaviour of mrproper is like $EDITOR suddenly changing its
core key bindings. Users accustomed to those bindings won't be happy.
If, for whatever reason, clean becomes as powerful as mrproper, just
set mrproper == clean. Or remove clean but keep mrproper :-)
/Mikael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-20 20:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-20 18:01 [PATCH] 2.5.44 mrproper removes editor backup files Mikael Pettersson
2002-10-20 18:27 ` Sam Ravnborg
2002-10-20 20:36 Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome