Skip to content
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

Print help with list of targets by default #1467

Merged
merged 1 commit into from
Sep 13, 2019

Conversation

ondrej-fabry
Copy link
Member

Running make (without specifying any target) or make help will now print list of documented make targets.

➤ make
List of make targets:
agent                          Build agent
install                        Install commands
cmd                            Build commands
clean-cmd                      Clean commands
examples                       Build examples
clean-examples                 Clean examples
debug-remote                   Debug remotely
test                           Run unit tests
test-cover                     Run unit tests with coverage
perf                           Run quick performance test
perf-all                       Run all performance tests
integration-tests              Run integration tests
generate                       Generate all
generate-proto                 Generate Go code for Protobuf files
generate-binapi                Generate Go code for VPP binary API
verify-binapi                  Verify generated VPP binary API
generate-desc-adapters         Generate Go code for descriptors
dep-check                      Check Go dependencies
lint                           Lint Go code
format                         Format Go code
get-linkcheck                  Check links in Markdown files
yamllint                       Lint YAML files
images                         Build all images
dev-image                      Build developer image
prod-image                     Build production image

This is done by parsing Makefile and listing make targets that contain special comment, e.g.:

build: ## Builds agent
    ...

Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
@ondrej-fabry ondrej-fabry merged commit 643255e into ligato:dev Sep 13, 2019
VladoLavor pushed a commit to VladoLavor/vpp-agent that referenced this pull request Oct 4, 2019
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants