forked from gruntwork-io/terragrunt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
34 lines (23 loc) · 560 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
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
fmtcheck:
@sh -c "'$(CURDIR)/scripts/gofmtcheck.sh'"
fmt:
@echo "Running source files through gofmt..."
gofmt -w $(GOFMT_FILES)
test:
go test -v -short ./...
full-test:
go test -v ./...
static:
go install honnef.co/go/tools/cmd/[email protected]
staticcheck --version
staticcheck ./...
pre-commit: fmt static test
build:
go install golang.org/x/tools/cmd/[email protected]
go install github.com/cheekybits/[email protected]
go generate -x ./...
go build
install:
go install
.PHONY: test