forked from facebookincubator/go2chef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 811 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
43
44
45
46
47
48
49
50
51
52
GO111MODULES := on
all: test coverage lint fmt vet
.PHONY: test
test:
go test ./...
.PHONY: coverage
coverage:
go test -coverprofile=/tmp/coverage.out
go tool cover -func=/tmp/coverage.out
.PHONY: lint
lint:
scripts/lint.sh
.PHONY: fmt
fmt:
find . -type f -name '*.go' | xargs gofmt -w -s
.PHONY: vet
vet:
go vet
.PHONY: linux
linux:
GOOS=linux GOARCH=amd64 scripts/build.sh
.PHONY: linuxARM
linuxARM:
GOOS=linux GOARCH=arm64 scripts/build.sh
.PHONY: linux32
linux32:
GOOS=linux GOARCH=386 scripts/build.sh
.PHONY: darwin
darwin:
GOOS=darwin GOARCH=amd64 scripts/build.sh
.PHONY: darwinARM
darwinARM:
GOOS=darwin GOARCH=arm64 scripts/build.sh
.PHONY: windows
windows:
GOOS=windows GOARCH=amd64 scripts/build.sh
.PHONY: windowsARM
windowsARM:
GOOS=windows GOARCH=arm64 scripts/build.sh