[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: ./configure or ./config.status --clean
From: |
Russ Allbery |
Subject: |
Re: RFC: ./configure or ./config.status --clean |
Date: |
Tue, 26 Mar 2002 12:43:47 -0800 |
User-agent: |
Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) |
Eric Siegerman <address@hidden> 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 (address@hidden) <http://www.eyrie.org/~eagle/>