Make Makefile more Docker for Mac friendly

Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
Dave Tucker 2017-03-01 13:20:34 +00:00
Родитель 499bb4ad78
Коммит 8d6dd76c98
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -6,6 +6,7 @@ PKG_NAME = github.com/${REPO_OWNER}/${REPO_NAME}
IMAGE = golang:1.7.1
IMAGE_NAME = dockercraft-dev
CONTAINER_NAME = dockercraft-dev-container
PACKAGES=$(shell go list ./... | grep -v vendor)
all: test
@ -22,15 +23,15 @@ install-deps:
lint:
@echo "+ $@"
@test -z "$$(golint ./... | grep -v vendor/ | tee /dev/stderr)"
@test -z "$$(golint $(PACKAGES) | tee /dev/stderr)"
fmt:
@echo "+ $@"
@test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)"
@test -z "$$(gofmt -s -l *.go | tee /dev/stderr)"
vet:
@echo "+ $@"
@go vet .
go vet $(PACKAGES)
build:
@echo "+ $@"