]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104490: Consistently define phony make targets (#104491)
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 15 May 2023 08:48:34 +0000 (01:48 -0700)
committerGitHub <noreply@github.com>
Mon, 15 May 2023 08:48:34 +0000 (08:48 +0000)
commita6bcc8fb92ffb75bb1907cc568ba9fff516979c3
tree5c6a26ff650d8560c48d17329d835bb07c9236b3
parentb15a1a6ac6ea0d7792036e639e90f0e51400c2ee
gh-104490: Consistently define phony make targets (#104491)

By convention make targets that don't refer to a file have a dependency
on the fake .PHONY target/file. This ensures that these targets are
always evaluated because there is no rule to create a .PHONY file
and that will force make to think the rule is out of date and needs
to be rebuilt.

This commit consistently associates virtual targets with .PHONY by
declaring the .PHONY dependency immediately above the make rule. This
should avoid race conditions and avoidable rebuilds across multiple make
invocations.
Makefile.pre.in
Misc/NEWS.d/next/Build/2023-05-14-19-00-19.gh-issue-104490.1tA4AF.rst [new file with mode: 0644]