-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (34 loc) · 1.28 KB
/
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
#BUILDFILE_PATH := ./build/private/bgo_exports.makefile
#ifneq ("$(wildcard $(BUILDFILE_PATH))","")
# include ${BUILDFILE_PATH}
#endif
# Install deadcode with: go install golang.org/x/tools/cmd/deadcode@latest
# Install gocyclo with: go install github.com/fzipp/gocyclo/cmd/gocyclo@latest
# Install ineffassign with: go install github.com/gordonklaus/ineffassign@latest
# Install golint with: go install golang.org/x/lint/golint@latest
# Install nilaway with: go install go.uber.org/nilaway/cmd/nilaway@latest
all: setup-precommit lint argot-build racerg-build test
install: argot-install
lint: **/*.go
deadcode -test -filter ar-go-tools/analysis ./...
go vet ./...
gocyclo -ignore "test|internal/pointer|internal/typeparams" -over 15 .
ineffassign ./...
nilaway --test=false ./cmd/argot/...
golint -set_exit_status -min_confidence 0.9 ./...
test: **/*.go
go clean -testcache
go test ./...
argot-build: go.mod cmd/argot/**/*.go
go build -o bin/argot ./cmd/argot/main.go
argot-install:
go install github.com/awslabs/ar-go-tools/cmd/argot
racerg-build: go.mod cmd/racerg/*.go
go build -o bin/racerg cmd/racerg/*.go
build: argot-build racerg-build
setup-precommit:
cp ./copyrights.sh .git/hooks/pre-commit
clean:
rm -rf bin
find . -name "*-report" | xargs rm -rf
release: all