[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why are phony order-only prerequisites always fired?
From: |
Greg Chicares |
Subject: |
Re: Why are phony order-only prerequisites always fired? |
Date: |
Thu, 05 May 2011 14:12:55 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8 |
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.