[Top][All Lists]

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

[bug #24487] "foo" should not be identified with "./foo" if foo is phony

From: Paul D. Smith
Subject: [bug #24487] "foo" should not be identified with "./foo" if foo is phony
Date: Mon, 2 Jan 2017 21:22:02 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

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

The documentation for .PHONY states (
https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html ):

_The implicit rule search (see Implicit Rules) is skipped for .PHONY targets.
This is why declaring a target as .PHONY is good for performance, even if you
are not worried about the actual file existing._

This explains all the later commentary regarding declaring targets that match
pattern rules to be phony... that's documented, expected behavior and a
fundamental feature of using .PHONY.

If you want to force a target to always be rebuilt via a pattern rule, you
should use the force target method as described:

However, I want to say that creating match-anything patterns as shown in the
comments below is generally not a good idea: it often causes performance

The original question, which is not related to any of these other comments,
still remains.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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