Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfa] make clean should remove observe.h and observer.inc
@ 2011-02-22 21:56 Michael Snyder
  2011-02-23 21:44 ` Michael Snyder
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Snyder @ 2011-02-22 21:56 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 31 bytes --]

These are easily regenerated.


[-- Attachment #2: observer.txt --]
[-- Type: text/plain, Size: 810 bytes --]

2011-02-22  Michael Snyder  <msnyder@vmware.com>

	* Makefile.in (clean): Make clean should remove generated files
	observer.h and observer.inc.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.1158
diff -u -p -u -p -r1.1158 Makefile.in
--- Makefile.in	22 Feb 2011 08:00:25 -0000	1.1158
+++ Makefile.in	22 Feb 2011 21:22:37 -0000
@@ -1237,7 +1237,7 @@ tags: TAGS
 clean mostlyclean: $(CONFIG_CLEAN)
 	@$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do
 	rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp
-	rm -f init.c version.c
+	rm -f init.c version.c observer.h observer.inc
 	rm -f gdb$(EXEEXT) core make.log
 	rm -f gdb[0-9]$(EXEEXT)
 	rm -f test-cp-name-parser$(EXEEXT)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-22 21:56 [rfa] make clean should remove observe.h and observer.inc Michael Snyder
@ 2011-02-23 21:44 ` Michael Snyder
  2011-02-24  7:20   ` Jan Kratochvil
  2011-02-24 15:46   ` Tom Tromey
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Snyder @ 2011-02-23 21:44 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 109 bytes --]

Did this show up on the list?  I can't find it...

Michael Snyder wrote:
> These are easily regenerated.
> 


[-- Attachment #2: observer.txt --]
[-- Type: text/plain, Size: 810 bytes --]

2011-02-23  Michael Snyder  <msnyder@vmware.com>

	* Makefile.in (clean): Make clean should remove generated files
	observer.h and observer.inc.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.1158
diff -u -p -u -p -r1.1158 Makefile.in
--- Makefile.in	22 Feb 2011 08:00:25 -0000	1.1158
+++ Makefile.in	23 Feb 2011 21:33:33 -0000
@@ -1237,7 +1237,7 @@ tags: TAGS
 clean mostlyclean: $(CONFIG_CLEAN)
 	@$(MAKE) $(FLAGS_TO_PASS) DO=clean "DODIRS=$(CLEANDIRS)" subdir_do
 	rm -f *.o *.a $(ADD_FILES) *~ init.c-tmp init.l-tmp version.c-tmp
-	rm -f init.c version.c
+	rm -f init.c version.c observer.h observer.inc
 	rm -f gdb$(EXEEXT) core make.log
 	rm -f gdb[0-9]$(EXEEXT)
 	rm -f test-cp-name-parser$(EXEEXT)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-23 21:44 ` Michael Snyder
@ 2011-02-24  7:20   ` Jan Kratochvil
  2011-02-24 15:46   ` Tom Tromey
  1 sibling, 0 replies; 10+ messages in thread
From: Jan Kratochvil @ 2011-02-24  7:20 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb-patches

On Wed, 23 Feb 2011 22:35:47 +0100, Michael Snyder wrote:
> Did this show up on the list?  I can't find it...

Yes.  I do not see any problem with the mail delivery.
	http://sourceware.org/ml/gdb-patches/2011-02/msg00627.html


Regards,
Jan


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-23 21:44 ` Michael Snyder
  2011-02-24  7:20   ` Jan Kratochvil
@ 2011-02-24 15:46   ` Tom Tromey
  2011-02-24 18:25     ` Michael Snyder
  1 sibling, 1 reply; 10+ messages in thread
From: Tom Tromey @ 2011-02-24 15:46 UTC (permalink / raw)
  To: Michael Snyder; +Cc: gdb-patches

Michael> 2011-02-23  Michael Snyder  <msnyder@vmware.com>
Michael> 	* Makefile.in (clean): Make clean should remove generated files
Michael> 	observer.h and observer.inc.

I think this is ok.

There is a sort of GNU rule governing "clean" behavior.  I'm not sure
whether this is documented in the GNU standards but it is longstanding
practice, existing before and then codified in Automake:

* 'mostlyclean' is a "useful" subset of 'clean'
* If 'make' built it, 'clean' removes it
* If 'configure' built it, 'distclean' removes it
* If the developer built it, but it is a generated file not needed for
  "configure; make", then `maintainer-clean' removes it.

I looked a little more and I found this in the Automake manual's "Clean"
node.

Tom


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 15:46   ` Tom Tromey
@ 2011-02-24 18:25     ` Michael Snyder
  2011-02-24 18:27       ` Joel Brobecker
  0 siblings, 1 reply; 10+ messages in thread
From: Michael Snyder @ 2011-02-24 18:25 UTC (permalink / raw)
  To: Tom Tromey; +Cc: gdb-patches

Tom Tromey wrote:
> Michael> 2011-02-23  Michael Snyder  <msnyder@vmware.com>
> Michael> 	* Makefile.in (clean): Make clean should remove generated files
> Michael> 	observer.h and observer.inc.
> 
> I think this is ok.

I'll check it in, then,

> There is a sort of GNU rule governing "clean" behavior.  I'm not sure
> whether this is documented in the GNU standards but it is longstanding
> practice, existing before and then codified in Automake:
> 
> * 'mostlyclean' is a "useful" subset of 'clean'
> * If 'make' built it, 'clean' removes it
> * If 'configure' built it, 'distclean' removes it
> * If the developer built it, but it is a generated file not needed for
>   "configure; make", then `maintainer-clean' removes it.
> 
> I looked a little more and I found this in the Automake manual's "Clean"
> node.

That brings up another question.  What about <lang>-exp.c?  Technically
they are generated files.  Should make clean remove them?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 18:25     ` Michael Snyder
@ 2011-02-24 18:27       ` Joel Brobecker
  2011-02-24 18:39         ` Michael Snyder
  2011-02-24 19:01         ` Mark Kettenis
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Brobecker @ 2011-02-24 18:27 UTC (permalink / raw)
  To: Michael Snyder; +Cc: Tom Tromey, gdb-patches

> That brings up another question.  What about <lang>-exp.c?  Technically
> they are generated files.  Should make clean remove them?

I would say no - we check them in so to allow users to build
GDB without requiring bison/flex. It would be problematic for
them if they disappeared at a simple "make clean".

-- 
Joel


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 18:27       ` Joel Brobecker
@ 2011-02-24 18:39         ` Michael Snyder
  2011-02-24 18:57           ` Tom Tromey
  2011-02-24 19:04           ` Mark Kettenis
  2011-02-24 19:01         ` Mark Kettenis
  1 sibling, 2 replies; 10+ messages in thread
From: Michael Snyder @ 2011-02-24 18:39 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: Tom Tromey, gdb-patches

Joel Brobecker wrote:
>> That brings up another question.  What about <lang>-exp.c?  Technically
>> they are generated files.  Should make clean remove them?
> 
> I would say no - we check them in so to allow users to build
> GDB without requiring bison/flex. It would be problematic for
> them if they disappeared at a simple "make clean".
> 

We don't check them in -- they're not in cvs.  We add them to the tar 
file when we make a release.

OK, though, how about "make distclean"?



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 18:39         ` Michael Snyder
@ 2011-02-24 18:57           ` Tom Tromey
  2011-02-24 19:04           ` Mark Kettenis
  1 sibling, 0 replies; 10+ messages in thread
From: Tom Tromey @ 2011-02-24 18:57 UTC (permalink / raw)
  To: Michael Snyder; +Cc: Joel Brobecker, gdb-patches

>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:

Michael> We don't check them in -- they're not in cvs.  We add them to
Michael> the tar file when we make a release.

Michael> OK, though, how about "make distclean"?

Another meaning of "distclean" is "make the tree look like it did after
I unpacked the distribution .tar".

So, this is sort of a funny case.  I think if you really want them to be
removed, distclean would be fine.

Tom


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 18:27       ` Joel Brobecker
  2011-02-24 18:39         ` Michael Snyder
@ 2011-02-24 19:01         ` Mark Kettenis
  1 sibling, 0 replies; 10+ messages in thread
From: Mark Kettenis @ 2011-02-24 19:01 UTC (permalink / raw)
  To: brobecker; +Cc: msnyder, tromey, gdb-patches

> Date: Thu, 24 Feb 2011 22:25:46 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> 
> > That brings up another question.  What about <lang>-exp.c?  Technically
> > they are generated files.  Should make clean remove them?
> 
> I would say no - we check them in so to allow users to build
> GDB without requiring bison/flex. It would be problematic for
> them if they disappeared at a simple "make clean".

Indeed; "make clean" should not remove any files that are included in
the GDB release tarball.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [rfa] make clean should remove observe.h and observer.inc
  2011-02-24 18:39         ` Michael Snyder
  2011-02-24 18:57           ` Tom Tromey
@ 2011-02-24 19:04           ` Mark Kettenis
  1 sibling, 0 replies; 10+ messages in thread
From: Mark Kettenis @ 2011-02-24 19:04 UTC (permalink / raw)
  To: msnyder; +Cc: brobecker, tromey, gdb-patches

> Date: Thu, 24 Feb 2011 10:27:44 -0800
> From: Michael Snyder <msnyder@vmware.com>
> 
> Joel Brobecker wrote:
> >> That brings up another question.  What about <lang>-exp.c?  Technically
> >> they are generated files.  Should make clean remove them?
> > 
> > I would say no - we check them in so to allow users to build
> > GDB without requiring bison/flex. It would be problematic for
> > them if they disappeared at a simple "make clean".
> > 
> 
> We don't check them in -- they're not in cvs.  We add them to the tar 
> file when we make a release.
> 
> OK, though, how about "make distclean"?

Same for "make distclean"; "make distclean" should restore the source
tree into the state it was in just after untarring the GDB release
tarball.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-02-24 19:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-22 21:56 [rfa] make clean should remove observe.h and observer.inc Michael Snyder
2011-02-23 21:44 ` Michael Snyder
2011-02-24  7:20   ` Jan Kratochvil
2011-02-24 15:46   ` Tom Tromey
2011-02-24 18:25     ` Michael Snyder
2011-02-24 18:27       ` Joel Brobecker
2011-02-24 18:39         ` Michael Snyder
2011-02-24 18:57           ` Tom Tromey
2011-02-24 19:04           ` Mark Kettenis
2011-02-24 19:01         ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox