Make: install tools target

This commit is contained in:
Vincent Batts 2018-08-13 23:03:28 -04:00
parent f34a2e0d2b
commit 2f374a383e
2 changed files with 5 additions and 2 deletions

View file

@ -9,8 +9,7 @@ sudo: false
before_install: before_install:
- git config --global url."https://".insteadOf git:// - git config --global url."https://".insteadOf git://
- go get -u github.com/golang/lint/golint - make install.tools
- go get -u github.com/Masterminds/glide
- mkdir -p $GOPATH/src/github.com/vbatts && ln -sf $(pwd) $GOPATH/src/github.com/vbatts/go-mtree - mkdir -p $GOPATH/src/github.com/vbatts && ln -sf $(pwd) $GOPATH/src/github.com/vbatts/go-mtree
install: true install: true

View file

@ -62,6 +62,10 @@ build: $(BUILD)
$(BUILD): $(SOURCE_FILES) $(BUILD): $(SOURCE_FILES)
go build -o $(BUILD) $(BUILDPATH) 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: ./bin:
mkdir -p $@ mkdir -p $@