Skip to content

Commit

Permalink
gh-104490: Consistently define phony make targets (#104491)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
indygreg authored May 15, 2023
1 parent b15a1a6 commit a6bcc8f
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 20 deletions.
Loading

0 comments on commit a6bcc8f

Please sign in to comment.