forked from GoogleCloudPlatform/gcsfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (24 loc) · 612 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
.DEFAULT_GOAL := build
.PHONY: generate imports fmt vet build buildTest install test clean-gen clean clean-all
generate:
go generate ./...
imports: generate
goimports -w .
fmt: imports
go fmt ./...
vet: fmt
go vet ./...
build: vet
go build .
buildTest: vet
go test -run=PATTERN_THAT_DOES_NOT_MATCH_ANYTHING ./...
install: fmt
go install -v ./...
test: fmt
CGO_ENABLED=0 go test -count 1 `go list ./... | grep -v internal/cache/...` && CGO_ENABLED=0 go test -p 1 -count 1 ./internal/cache/...
clean-gen:
rm -rf cfg/config.go
clean: clean-gen
go clean
clean-all: clean-gen
go clean -i ./...