-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (37 loc) · 889 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
.PHONY: all
all: build test test-examples readme
.PHONY: test
test:
$(info #Running tests...)
go clean -testcache
go test ./...
.PHONY: test-examples
test-examples:
$(info #Running internal tests...)
cd ./internal/examples
go generate -v ./...
go clean -testcache
go test ./...
.PHONY: build
build:
$(info #Building...)
go install
.PHONY: lint
lint:
$(info #Lints...)
go install golang.org/x/tools/cmd/goimports@latest
goimports -w .
go vet ./...
go install github.com/tetafro/godot/cmd/godot@latest
godot .
go install github.com/kisielk/errcheck@latest
errcheck ./...
go install github.com/alexkohler/nakedret/cmd/nakedret@latest
nakedret ./...
go install golang.org/x/lint/golint@latest
golint ./...
.PHONY: readme
readme:
$(info #README.md...)
asciidoctor -b docbook internal/docs/readme.adoc
pandoc -f docbook -t gfm internal/docs/readme.xml -o README.md