From cb4823750be22089829a9d723a36887322d9c375 Mon Sep 17 00:00:00 2001 From: Dominik Schulz Date: Thu, 2 Feb 2017 16:47:51 +0100 Subject: [PATCH] Generate bash and zsh completion scripts --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9c80d1749f..450c5ec387 100644 --- a/Makefile +++ b/Makefile @@ -88,6 +88,11 @@ $(EXECUTABLE)-$(GOOS)-$(GOARCH): $(wildcard *.go) release: clean dist/release.sh -completion: build bash.completion zsh.completion +bash.completion: $(EXECUTABLE)-$(GOOS)-$(GOARCH) ./$(EXECUTABLE)-$(GOOS)-$(GOARCH) completion bash >bash.completion + +zsh.completion: $(EXECUTABLE)-$(GOOS)-$(GOARCH) ./$(EXECUTABLE)-$(GOOS)-$(GOARCH) completion zsh >zsh.completion + +.PHONY: completion +completion: bash.completion zsh.completion