mirror of https://github.com/docker/cli.git
Makefile: add completion target
Add a "completion" target to install the generated completion
scripts inside the dev-container. As generating this script
depends on the docker binary, it calls "make binary" first.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 3f3ecb94c5
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
338e7a604c
commit
6cd1f6f26d
10
Makefile
10
Makefile
|
@ -86,6 +86,16 @@ mod-outdated: ## check outdated dependencies
|
||||||
authors: ## generate AUTHORS file from git history
|
authors: ## generate AUTHORS file from git history
|
||||||
scripts/docs/generate-authors.sh
|
scripts/docs/generate-authors.sh
|
||||||
|
|
||||||
|
.PHONY: completion
|
||||||
|
completion: binary
|
||||||
|
completion: /etc/bash_completion.d/docker
|
||||||
|
completion: ## generate and install the completion scripts
|
||||||
|
|
||||||
|
.PHONY: /etc/bash_completion.d/docker
|
||||||
|
/etc/bash_completion.d/docker: ## generate and install the bash-completion script
|
||||||
|
mkdir -p /etc/bash_completion.d
|
||||||
|
docker completion bash > /etc/bash_completion.d/docker
|
||||||
|
|
||||||
.PHONY: manpages
|
.PHONY: manpages
|
||||||
manpages: ## generate man pages from go source and markdown
|
manpages: ## generate man pages from go source and markdown
|
||||||
scripts/docs/generate-man.sh
|
scripts/docs/generate-man.sh
|
||||||
|
|
Loading…
Reference in New Issue