-
-
Notifications
You must be signed in to change notification settings - Fork 273
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 686 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 686 Bytes
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
all: lint build test
build:
go build ./...
install:
./scripts/make-install.sh
lint: fmt vet staticcheck misspell
fmt:
./scripts/gofmt.sh
vet:
go vet ./check ./cmd/... ./download ./handlers ./tools/...
go vet ./main.go
staticcheck:
@[ -x "$(shell which staticcheck)" ] || go install honnef.co/go/tools/cmd/staticcheck@master
staticcheck ./...
test:
go test -cover ./...
start:
go run main.go
misspell:
@[ -x "$(shell which misspell)" ] || go install ./vendor/github.com/client9/misspell/cmd/misspell
find . -name '*.go' -not -path './vendor/*' -not -path './_repos/*' -not -path './download/test_downloads/*' -not -path './check/testdata/*' | xargs misspell -error