bug-make
[Top][All Lists]
Advanced

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

Re: Potential Bug: `.PHONY` targets and order-only prerequisites


From: Dmitry Goncharov
Subject: Re: Potential Bug: `.PHONY` targets and order-only prerequisites
Date: Sat, 21 May 2022 14:34:28 -0400

On Sat, May 21, 2022 at 12:25 PM Paul Smith <psmith@gnu.org> wrote:
> Maybe what you're saying is that make should throw an error or warning
> if you try to add an order-only prerequisite to a phony target, telling
> you that it will have no effect on your makefile?

Having a phony target depend (usually indirectly, but there are
examples of immediate dependency) on an order-only prerequisite is
quite common. This happens when the top target is marked phony and
there is an order-only prerequisite down the graph.

regards, Dmitry



reply via email to

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