Re: Detect --disable-dependency-tracking in Makefile.am

Dave Hart <[email protected]>
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <CAMbSiYCYgT5YL-AefewigLv+Dj8yEnAsdyoNwwfsbF5aMn_PDg@mail.gmail.com>
On Sun, 1 Oct 2023 at 04:45, Jan Engelhardt <[email protected]> wrote:

> >I didn't explain sufficiently.  The submakes I'm talking about are my
> >doing, and I want to conditionalize them on whether
> >--enable-dependency-tracking is used.
> >
> >In for example both ntpq/Makefile.am and ntpd/Makefile.am I'm invoking:
> >
> >(cd ../libntp && make libntp.a)
>
> Yes and if you didn't do sub-makes, then the prerequisites for libntp.a
> would be known (and evaluatable to determine whether to rebuild).
>

Yes.  The only downside that comes to mind is it would no longer be easy to
build a particular subdir despite some other subdir that builds earlier
having an issue you don't care to tackle at the moment.

I welcome anyone who wants to give it a try.  Maintainability is more
important to us than performance, and there may be gremlins in our build
system that make it tricky, I haven't looked into it.  I have my hands full
with more pressing issues than overhauling the build system.
-- 
Cheers,
Dave Hart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.