Add make deps and make updatedeps

This commit is contained in:
Peter Edge 2018-02-17 23:50:29 +01:00
parent 28b31068cd
commit 81ca2bca7d
2 changed files with 10 additions and 2 deletions

View File

@ -11,4 +11,4 @@ matrix:
script:
# TODO: change to "make" when golint, errcheck, staticcheck pass
- make checkgofmt vet unused test
- make deps checkgofmt vet unused test

View File

@ -2,7 +2,15 @@ SRCS := $(shell find . -name '*.go')
PKGS := $(shell go list ./...)
.PHONY: all
all: lint test
all: deps lint test
.PHONY: deps
deps:
go get -d -v -t $(PKGS)
.PHONY: updatedeps
updatedeps:
go get -d -v -t -u -f $(PKGS)
.PHONY: install
install: