On 2011-05-05 13:05Z, Akim Demaille wrote:
> 
> This file is declared phony because there's no visible way for Make to know
> when to update it: just update it each time we need it.

Okay, but that file is a prerequisite of a target that 'make' does update...

> Yet, GNU Make seems to always run the recipes of the order-only prerequisites

Because the prerequisite is phony.

http://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
| A phony target should not be a prerequisite of a real target file;
| if it is, its recipe will be run every time make goes to update that file.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to