-
-
Notifications
You must be signed in to change notification settings - Fork 361
/
Makefile
35 lines (24 loc) · 619 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
BUILD_PATH := cmd/jocko/jocko
DOCKER_TAG := latest
all: test
deps:
@which dep 2>/dev/null || go get -u github.com/golang/dep/cmd/dep
@dep ensure -v
vet:
@go list ./... | grep -v vendor | xargs go vet
build: deps
@go build -o $(BUILD_PATH) cmd/jocko/main.go
release:
@which goreleaser 2>/dev/null || go get -u github.com/goreleaser/goreleaser
@goreleaser
clean:
@rm -rf dist
build-docker:
@docker build -t travisjeffery/jocko:$(DOCKER_TAG) .
generate:
@go generate
test:
@go test -v ./...
test-race:
@go test -v -race -p=1 ./...
.PHONY: test-race test build-docker clean release build deps vet all