Follow-up Comment #4, bug #64886 (project make):

Order-only beats phony.
If a target depends on an order-only prerequisite, then this prerequisite does
not cause the target to be updated, whether this prerequisite is phony or
not.

> i guess only issue might be, "should .PHONY: give an error for order-only
pre-requisites?".  i can't think of a reason such a pre-requisite would make
any sense

It indeed useless to mark a prerequisite of .PHONY as order-only, given that
make never builds target .PHONY.

However, a prerequisite of a proper target can be marked both phony and
order-only and there are makefiles which do that.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64886>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to