bug-make
[Top][All Lists]
Advanced

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

[bug #64886] order-only prerequisite on a .PHONY line makes prerequisite


From: Dmitry Goncharov
Subject: [bug #64886] order-only prerequisite on a .PHONY line makes prerequisite "unmakeable"
Date: Thu, 16 Nov 2023 17:54:45 -0500 (EST)

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

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