This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: RFC: ./configure or ./config.status --clean
Eric Siegerman <erics@telepres.com> writes:
> Another possibility is to do the cleaning in the Makefile as it's
> always been done, but have config.status provide the list of
> files. Something like an "@configure_targets@" macro for
> config.status to replace -- the catch being that, unlike other
> macros, this one's value is customized per directory. So every
> Makefile.in (Automake-generated or otherwise), can just say:
> distclean-whatever:
> ....
> -rm -f @configure_targets@
> This accomplishes the goal of removing knowledge of Autoconf from
> inside Automake, while sidestepping all these other decisions :-)
I like this approach much better. It also handles cases where, for some
strange reason, the user may want to take some action other than rm for
such files.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>