automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *CLEANFILES dependency


From: Nick Bowler
Subject: Re: *CLEANFILES dependency
Date: Tue, 12 Aug 2014 17:12:44 -0400
User-agent: Mutt/1.5.22 (2013-10-16)

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

[Prev in Thread] Current Thread [Next in Thread]