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: Paul Smith
Subject: Re: Potential Bug: `.PHONY` targets and order-only prerequisites
Date: Tue, 17 May 2022 18:40:31 -0400
User-agent: Evolution 3.44.1 (by Flathub.org))

On Tue, 2022-05-17 at 22:32 +0000, Martin Dorey wrote:
> >  all your targets are .PHONY, and thus are always rebuilt anyway
> 
> If you "make down", the rule for "down-clean" doesn't run.  They're
> only rebuilt if something causes them to be considered.
> 
> >  order-only prerequisites are totally irrelevant and have no impact
> > on
> > your makefile.
> 
> If you comment-out the order-only prerequisite that says that the up
> target depends on down-clean, then the recipe for down-clean doesn't
> get run when you "make up".

Sure, of course.

What I was trying to say was, any rule that would normally be run will
be run regardless of order-only or not, because all the targets in the
makefile are phony.  So adding or removing the order-only operator in a
prerequisites list makes no difference to how the targets will be
processed, in this specific makefile.



reply via email to

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