Re: Built-in target to delete all generated files

2010-04-30 Thread Russ Allbery
Bob Friesenhahn writes: > On Thu, 29 Apr 2010, Russ Allbery wrote: >> I think this just varies based on what your developers are like and how >> closed your project is, basically. People often say that they find it >> fairly easy to make all developers on a project use identical versions >> of t

Re: Built-in target to delete all generated files

2010-04-30 Thread Bob Friesenhahn
On Thu, 29 Apr 2010, Russ Allbery wrote: I think this just varies based on what your developers are like and how closed your project is, basically. People often say that they find it fairly easy to make all developers on a project use identical versions of the autotools. I find that sort of min

Re: Built-in target to delete all generated files

2010-04-30 Thread Eric Blake
On 04/30/2010 03:53 AM, Steffen Dettmer wrote: > Hi, > > why would someone want to check in derived files like configure > and Makefile? Because someone might not have autotools? Why not > also checking in objects and libs in case someone might not have > a compiler installed? There's a differenc

Re: Built-in target to delete all generated files

2010-04-30 Thread Steffen Dettmer
Hi, why would someone want to check in derived files like configure and Makefile? Because someone might not have autotools? Why not also checking in objects and libs in case someone might not have a compiler installed? On Fri, Apr 30, 2010 at 5:57 AM, Trevor Harmon wrote: > For this discussion I

Re: Built-in target to delete all generated files

2010-04-29 Thread Trevor Harmon
On Apr 29, 2010, at 7:48 PM, NightStrike wrote: > It's a lot easier to make the > developers on your project use the right versions of stuff than > imposing that requirement on all of your users. In my mind, our users > should be able to download, configure, compile, and use. Creating the > buil

Re: Built-in target to delete all generated files

2010-04-29 Thread NightStrike
On Thu, Apr 29, 2010 at 11:11 PM, Russ Allbery wrote: > NightStrike writes: >> On Thu, Apr 29, 2010 at 7:53 PM, Russ Allbery wrote: > >>> I suspect it depends on what sort of activities you expect people using >>> a VCS checkout directly to be doing, and also how sophisticated of a >>> VCS you'r

Re: Built-in target to delete all generated files

2010-04-29 Thread Russ Allbery
NightStrike writes: > On Thu, Apr 29, 2010 at 7:53 PM, Russ Allbery wrote: >> I suspect it depends on what sort of activities you expect people using >> a VCS checkout directly to be doing, and also how sophisticated of a >> VCS you're using.  If you're using CVS, you basically can't do useful >

Re: Built-in target to delete all generated files

2010-04-29 Thread NightStrike
On Thu, Apr 29, 2010 at 7:53 PM, Russ Allbery wrote: > Bob Friesenhahn writes: > >> My project uses maintainer-mode and I always check these generated files >> into the source code repository.  The end user might not be able to >> produce a working set of files based on whatever random autotools

Re: Built-in target to delete all generated files

2010-04-29 Thread Russ Allbery
Bob Friesenhahn writes: > My project uses maintainer-mode and I always check these generated files > into the source code repository. The end user might not be able to > produce a working set of files based on whatever random autotools they > have on their system. I used to do this, but it quic

Re: Built-in target to delete all generated files

2010-04-29 Thread Bob Friesenhahn
On Wed, 28 Apr 2010, Trevor Harmon wrote: Yes, but that rule of thumb is at odds with another rule of thumb: "Never commit generated files to a source code repository." And considering that "autoreconf -i" does a perfect job of regenerating all of the files I listed, I'm willing to break the

Re: Built-in target to delete all generated files

2010-04-29 Thread Russ Allbery
Trevor Harmon writes: > On Apr 29, 2010, at 12:25 AM, Russ Allbery wrote: >> Although I must admit that now that I've switched to Git for >> everything, I'm finding myself more and more just using git clean -x -f >> -d > What does that do? Deletes every file and directory that isn't checked int

Re: Built-in target to delete all generated files

2010-04-29 Thread Trevor Harmon
On Apr 29, 2010, at 12:25 AM, Russ Allbery wrote: > Yeah, I've always ignored this part of the GCS for all of my projects. I > don't think it makes a lot of sense. If one doesn't want to remove the > generated files, that's what make distclean is for. The fact that "autoreconf -i" does its job

Re: Built-in target to delete all generated files

2010-04-29 Thread Russ Allbery
Trevor Harmon writes: > On Apr 28, 2010, at 6:27 AM, Peter Johansson wrote: >> Of note, GCS states that: "More generally, ‘make maintainer-clean’ >> should not delete anything that needs to exist in order to run >> configure and then begin to build the program". > Yes, but that rule of thumb is

Re: Built-in target to delete all generated files

2010-04-28 Thread Ralf Wildenhues
Hello Trevor, * Trevor Harmon wrote on Wed, Apr 28, 2010 at 09:18:37AM CEST: > My project lives in a source code repository (Subversion), and I'm > trying to keep all generated files out of it. This would be easier if > there were a built-in way of deleting anything and everything > generated by A

Re: Built-in target to delete all generated files

2010-04-28 Thread Trevor Harmon
On Apr 28, 2010, at 6:27 AM, Peter Johansson wrote: > You can extend maintainer-clean using either MANTAINERCLEANFILES or > maintainer-clean-local as documented here > > http://www.gnu.org/software/automake/manual/automake.html#Clean MAINTAINERCLEANFILES worked perfectly; thanks. > Of note, GC

Re: Built-in target to delete all generated files

2010-04-28 Thread Peter Johansson
Hi Trevor, Trevor Harmon wrote: Hi, My project lives in a source code repository (Subversion), and I'm trying to keep all generated files out of it. This would be easier if there were a built-in way of deleting anything and everything generated by Autotools. I could then run autoreconf to re

Built-in target to delete all generated files

2010-04-28 Thread Trevor Harmon
Hi, My project lives in a source code repository (Subversion), and I'm trying to keep all generated files out of it. This would be easier if there were a built-in way of deleting anything and everything generated by Autotools. I could then run autoreconf to recreate them as needed. I know abou