-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add make help
command to list available Makefile targets and descriptions
#16732
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
base: main
Are you sure you want to change the base?
Add make help
command to list available Makefile targets and descriptions
#16732
Conversation
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
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.
Don't have a strong opinion on having or not having this functionality. I still open the Makefile
in most cases.
The changes to the prometheus-mixin look fine.
It will be useful for new contributors and for quick referencing i believe Never bad to have something like this? |
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.
Nice!
Some comments and suggestion, but overall looks good. Thanks!
I do think some basic help and nice list of possible commands can help 💪🏽
@@ -35,44 +35,50 @@ ifdef PREBUILT_ASSETS_STATIC_DIR | |||
SKIP_UI_BUILD = true | |||
endif | |||
|
|||
help: ## Displays commands and their descriptions. |
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.
This is great, I only wonder if we shouldn't do this in Makefile.common
which we propagate cross organization (via https://github.com/prometheus/prometheus/blob/main/scripts/sync_repo_files.sh).
WDYT @SuperQ ?
Signed-off-by: NamanParlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
d7d5f32
to
703de20
Compare
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
@bwplotka refactored, have a look and let me know if any changes are required |
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Signed-off-by: Naman-B-Parlecha <namanparlecha@gmail.com>
Resolves: #16729
This PR introduces a
make help
command that displays all available Makefile targets along with their descriptions to eliminating the need to manually scan through the Makefile.Usage:
make help
Result: