[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: distclean doesn't remove nodist BUILT_SOURCES
From: |
Stepan Kasal |
Subject: |
Re: distclean doesn't remove nodist BUILT_SOURCES |
Date: |
Tue, 19 Oct 2004 12:05:45 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello Akim,
On Mon, Oct 18, 2004 at 01:33:42PM +0200, Akim Demaille wrote:
> >>> "Stepan" == Stepan Kasal <address@hidden> writes:
>
> > 2) Some of the files files belong to CLEANFILES, other to
> > DISTCLEANFILES. It's not easy to distinguish them (scanning
> > configure.ac for AC_SUBST), and automake shouldn't try to do this
> > guess. Including them all to DISTCLEANFILES lowers the probability
> > that the author will populate CLEANFILES accordingly.
>
> Well, repetition should still be avoided. It seems to me that you
> argument votes in favor of something clearer that nodist_, say
>
> clean_FOO_SOURCES
> distclean_FOO_SOURCES
>
> or whatever.
I'm not sure. Instead of having yet another special variable, one can
do it this way:
nodist_foo_SOURCES = foo_x.c foo_y.c
CLEANFILES = $(nodist_foo_SOURCES) other_files
or, in more complicated cases
foo_src_clean = this.c
foo_src_distclean = this_one.c that_one.c
nodist_foo_SOURCES = $(foo_src_clean) $(foo_src_distclean)
CLEANFILES = $(foo_src_clean)
DISTCLEANFILES = $(foo_src_distclean)
I don't think it's less comprehensive this way.
Yours,
Stepan