On Sat, May 21, 2022 at 12:25 PM Paul Smith <psm...@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