Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Push multi-arch images #38
Push multi-arch images #38
Changes from 27 commits
3e15253
4ec696f
2cdff97
77915da
d682165
ad0b945
d7d2609
a592fc7
711af70
c4e8e4e
a2c7c2f
a0707f9
bb7a32e
97f9ded
5ff67a8
e26aae4
44dd08d
c2ee7d4
f671a1f
2d269a7
899841f
5d6dc87
e42267f
c163d06
34aed5c
035c4d6
66a483f
0026153
007b94d
77fc304
6d150ad
78e7ee4
c03aa77
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think
$(MAKECMDGOALS)
will cover most of these; it injects the set of targets passed intomake
on the cmd-line. The only explicit .PHONY you need then are ones that are dependent targets (sobuild.develop
should be in here).Or its fine to make this list explicit with all targets but then don't need
$(MAKECMDGOALS)
in here too.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.
Thanks. I learned something and reinstated the original line :-)
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.
Though the original line also has a problem I think.
$(MAKECMDGOALS)
is the set of goals specified on the cmd-line, but more targets will run if any of those goals have dependencies. So.PHONY: all $(MAKECMDGOALS)
is only sufficient if no targets in the Makefile have dependencies. If there is a dependency, it will not be .PHONY unless explicitly listed. In this case,build.develop
should still be in there.So adding all the targets to .PHONY isn't a bad idea IMO, but there's no reason to add them all and also have
$(MAKECMDGOALS)
.Makefile hackery 😅
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.
Since this is tricky to understand -- and apparently was not understood by all developers who made updates to the
Makefile
before ;-) -- I suggest we go with explicitly listing of all goals.However, in the current form, this still leaves the door wide open for future developers who add new goals (or remove unused ones, or rename existing ones) to overlook/forget to update the .PHONY pseudo target at the end of the Makefile. So I would prefer to “tag” each individual goal like so:
This way, the
.PHONY
"tag" would get deleted when the corresponding target gets deleted (or renamed along with renaming a target) and when new targets are added, very likely an existing target would be used as a “template” and the.PHONY
“tag” would get copy-pasted or added for sheer “consistency” by the uninitiatedThere 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.
Makefiles are fun 😅 I came across a help command that regexes double hashtag above the command, and forms a helptext https://github.com/ddelange/mapply/blob/0.1.21/Makefile
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.
@ddelange -- sorry I completely missed your comment. I have done a similar thing in the past as well here using
grep
andawk
Do you want to open a PR for this, in this and the other 4 ModelMesh repos?