forked from ktr0731/evans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 741 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
36
37
38
39
40
41
42
43
44
45
46
47
SHELL := /bin/bash
export GOBIN := $(PWD)/_tools
export PATH := $(GOBIN):$(PATH)
.PHONY: version
version:
@echo "evans: $(shell bump show meta/meta.go)"
.PHONY: tools
tools:
@cat tools/tools.go | grep -E '^\s*_\s.*' | awk '{ print $$2 }' | xargs go install
.PHONY: build
build:
go build
.PHONY: build-dev
build-dev:
go build -tags dev
.PHONY: test
test: format gotest
.PHONY: format
format:
go mod tidy
.PHONY: credits
credits:
gocredits -skip-missing . > CREDITS
.PHONY: gotest
gotest: lint
go test -race ./...
.PHONY: lint
lint:
go vet ./...
.PHONY: release
release:
bash scripts/release.bash $(shell bump show meta/meta.go)
.PHONY: depgraph
depgraph:
GO111MODULE=off godepgraph -s -novendor . | dot -Tpng -o dep.png