Re: Best practice for cleaning autotools-generated files?
On Thu, 17 Mar 2011, Sean Finney wrote:
> autofoo stuff examines timestamps on various files, so it's possible
> that if configure gets patched before configure.ac, and
> AM_MAINTAINER_MODE is set to a specific value, that ./configure ends up
> wanting to regenerate ./configure at build time. double fail.
> > > So Makefile rules can then re-run auto* tools at build time and you
> > > lost the benefit you want to have.
> > Makefile rules should not rerun auto* stuff at build time.
> they will if AM_MAINTAINER_MODE is being used, in some cases.
It is the other way around. UNLESS you are using AM_MAINTAINER_MODE, it
*will* attempt to regenerate itself due to timestamp skews or file
modifications. It will use the "missing" script if it cannot find the tools
it wants (and "missing" will touch things to solve the timestamp skew).
AM_MAINTAINER_MODE is used to DISABLE the timestamp checking in the first
place, so that no retooling is done even if the user has some random version
of the autotools installed.
It is also worth noticing that this is an automake macro.
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot