From 2f374a383eeb185608484df17d76379595d73240 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 13 Aug 2018 23:03:28 -0400 Subject: [PATCH] Make: install tools target --- .travis.yml | 3 +-- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68187b3..39020cc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,7 @@ sudo: false before_install: - git config --global url."https://".insteadOf git:// - - go get -u github.com/golang/lint/golint - - go get -u github.com/Masterminds/glide + - make install.tools - mkdir -p $GOPATH/src/github.com/vbatts && ln -sf $(pwd) $GOPATH/src/github.com/vbatts/go-mtree install: true diff --git a/Makefile b/Makefile index 8967673..a4ec422 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,10 @@ build: $(BUILD) $(BUILD): $(SOURCE_FILES) go build -o $(BUILD) $(BUILDPATH) +install.tools: + go get -u -v github.com/Masterminds/glide + go get -u -v golang.org/x/lint/golint + ./bin: mkdir -p $@