[Top][All Lists]

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

Re: Keeping intermediate files

From: Dmitry Goncharov
Subject: Re: Keeping intermediate files
Date: Thu, 20 May 2021 18:58:15 -0400

On Thu, May 20, 2021 at 4:29 PM Frank Heckenbach
<f.heckenbach@fh-soft.de> wrote:

>    - just ".SECONDARY:" with no prerequisites which makes all
>      targets secondary (like I want), but also makes all targets
>      immediate, e.g. with this Makefile, if y exists and x doesn't,
>      it will remake x, but not y, which is not what I want:

You also do not want this, because this hurts performance badly.

> Am I missing a way to do it without adverse side-effects?

No. This is the state of affairs.

There is a proposed solution

You can use it like this
.NOTINTERMEDIATE: %.h %.d hello.z
This will cause %.d %.h and hello.z files to not be treated as intermediate.

See https://savannah.gnu.org/bugs/?60297.
If you can build make yourself you can apply the patch attached to
this proposal.

regards, Dmitry

reply via email to

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