On 2014-08-12 22:30 +0300, fr33domlover wrote:
> This is my first message on this list. I'm doing a lot of autotools related
> work recently so (depending on my level of success) it may be the first of
> many :-)
> 
> I read in the Automake manual (the one at www.gnu.org) about CLEANFILES,
> DISTCLEANFILES and so on. One thing I noticed after going over the manuals and
> searching the web is that nothing says any of them depend on the others. For
> example, if I add a file to DISTCLEANFILES, so I also need to manually add it
> to CLEANFILES? Does the former include the $(latter)?

Yes, but I think you have clean/distclean backwards.  There are four
clean targets:

  mostlyclean
  clean
  distclean
  maintainer-clean

Each target in the list performs all the actions of the targets
above it in addition to its own actions.  So if you add something
to DISTCLEANFILES, it will be removed by both distclean and
maintainer-clean, but not removed by mostlyclean or clean.
As you have observed, this does not appear to be explicitly
documented in the manual.

So typically, a generated file would be added to exactly one of the
*CLEANFILES variables.

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)

Reply via email to