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.