-
Notifications
You must be signed in to change notification settings - Fork 38.7k
build: Mark print-% target as phony. #22234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Also |
|
Sure. |
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
|
Nice! Wondering why there's a difference in how you do it for |
|
What is the difference? |
|
|
Both of these differences are accidental. |
|
Ah right! Let's just capitalize the one in Code Review ACK a27d4a3f357dde2a0f2b27794c716160846d78fe modulo |
|
Code Review ACK 020802c5b06489190f48bf544de761c72e2cce43 We might need to squash the commits before merge, but everything else looks good |
|
Yes this needs squashing. |
.PHONY does not take patterns (such as print-%) as prerequisites. Have print-% depend on FORCE and mark FORCE as phony. $ # on master $ make print-host host=x86_64-pc-linux-gnu $ touch print-host $ make print-host make: 'print-host' is up to date. $ $ git co mark_print_as_phony Switched to branch 'mark_print_as_phony' $ make print-host host=x86_64-pc-linux-gnu $ touch FORCE $ make print-host host=x86_64-pc-linux-gnu
020802c to
fb7be92
Compare
hebasto
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK fb7be92, tested on Linux Mint 20.2 (x86_64).
.PHONY does not take patterns (such as print-%) as prerequisites.
Have print-% depend on force and mark force as phony.
This change ensures print-% rule works even when there is a file that matches the target.