make: Fixup install/invocation of tools

Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
Mrunal Patel 2017-03-24 11:18:37 -07:00
parent ae9b5849a7
commit b7c97540b7

View file

@ -101,13 +101,13 @@ MANPAGES_MD := $(wildcard docs/*.md)
MANPAGES := $(MANPAGES_MD:%.md=%)
docs/%.1: docs/%.1.md check-gopath
go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
$(GOPATH)/bin/go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
docs/%.5: docs/%.5.md check-gopath
go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
$(GOPATH)/bin/go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
docs/%.8: docs/%.8.md check-gopath
go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
$(GOPATH)/bin/go-md2man -in $< -out $@.tmp && touch $@.tmp && mv $@.tmp $@
docs: $(MANPAGES)
@ -163,14 +163,14 @@ endif
install.tools: .install.gitvalidation .install.gometalinter .install.md2man
.install.gitvalidation:
.install.gitvalidation: check-gopath
go get -u github.com/vbatts/git-validation
.install.gometalinter:
.install.gometalinter: check-gopath
go get -u github.com/alecthomas/gometalinter
gometalinter --install
$(GOPATH)/bin/gometalinter --install
.install.md2man:
.install.md2man: check-gopath
go get -u github.com/cpuguy83/go-md2man
.PHONY: \