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: https://www.gnu.org/software/make/manual/html_node/Force-Targets.html 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 issues. The original question, which is not related to any of these other comments, still remains. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?24487> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make