-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
165 lines (104 loc) · 8.15 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
all: darwin-amd64 linux-amd64 windows-amd64 darwin-arm64 linux-arm64 windows-arm64
clean:
go clean
git clean -fdx ./out
test:
go test ./...
out:
mkdir -p ./out
# NOTE: meta-audit は Debug 用ツールなので必要になったら生成してください(生成されちゃうと Releases へあげるときに間引かないといけなくてめんどい)
darwin-amd64: out/unity-meta-check-darwin-amd64 out/unity-meta-check-junit-darwin-amd64 out/unity-meta-check-github-pr-comment-darwin-amd64 out/unity-meta-autofix-darwin-amd64 out/gh-action-yaml-gen-darwin-amd64
out/unity-meta-check-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@"
out/unity-meta-check-junit-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-darwin-amd64: out
GOARCH=amd64 GOOS=darwin go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-darwin-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -v -o "$@" ./tool/gh-action
darwin-arm64: out/unity-meta-check-darwin-arm64 out/unity-meta-check-junit-darwin-arm64 out/unity-meta-check-github-pr-comment-darwin-arm64 out/unity-meta-autofix-darwin-arm64 out/gh-action-yaml-gen-darwin-arm64
out/unity-meta-check-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@"
out/unity-meta-check-junit-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-darwin-arm64: out
GOARCH=arm64 GOOS=darwin go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-darwin-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -v -o "$@" ./tool/gh-action
# NOTE: meta-audit は Debug 用ツールなので必要になったら生成してください(生成されちゃうと Releases へあげるときに間引かないといけなくてめんどい)
linux-amd64: out/unity-meta-check-linux-amd64 out/unity-meta-check-junit-linux-amd64 out/unity-meta-check-github-pr-comment-linux-amd64 out/unity-meta-autofix-linux-amd64 out/gh-action-yaml-gen-linux-amd64 out/gh-action-linux-amd64
out/unity-meta-check-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@"
out/unity-meta-check-junit-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-linux-amd64: out
GOARCH=amd64 GOOS=linux go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-linux-amd64: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/gh-action
# NOTE: meta-audit は Debug 用ツールなので必要になったら生成してください(生成されちゃうと Releases へあげるときに間引かないといけなくてめんどい)
linux-arm64: out/unity-meta-check-linux-arm64 out/unity-meta-check-junit-linux-arm64 out/unity-meta-check-github-pr-comment-linux-arm64 out/unity-meta-autofix-linux-arm64 out/gh-action-yaml-gen-linux-arm64 out/gh-action-linux-arm64
out/unity-meta-check-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@"
out/unity-meta-check-junit-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-linux-arm64: out
GOARCH=arm64 GOOS=linux go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-linux-arm64: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/gh-action
# NOTE: meta-audit は Debug 用ツールなので必要になったら生成してください(生成されちゃうと Releases へあげるときに間引かないといけなくてめんどい)
windows-amd64: out/unity-meta-check-windows-amd64.exe out/unity-meta-check-junit-windows-amd64.exe out/unity-meta-check-github-pr-comment-windows-amd64.exe out/unity-meta-autofix-windows-amd64.exe out/gh-action-yaml-gen-windows-amd64.exe
out/unity-meta-check-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -o "$@"
out/unity-meta-check-junit-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-windows-amd64.exe: out
GOARCH=amd64 GOOS=windows go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-windows-amd64.exe: out
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -v -o "$@" ./tool/gh-action
# NOTE: meta-audit は Debug 用ツールなので必要になったら生成してください(生成されちゃうと Releases へあげるときに間引かないといけなくてめんどい)
windows-arm64: out/unity-meta-check-windows-arm64.exe out/unity-meta-check-junit-windows-arm64.exe out/unity-meta-check-github-pr-comment-windows-arm64.exe out/unity-meta-autofix-windows-arm64.exe out/gh-action-yaml-gen-windows-arm64.exe
out/unity-meta-check-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -v -o "$@"
out/unity-meta-check-junit-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-check-junit
out/unity-meta-check-github-pr-comment-windows-arm64.exe: out
GOARCH=arm64 GOOS=windows go build -a -tags netgo -installsuffix netgo -v -o "$@" ./tool/unity-meta-check-github-pr-comment
out/unity-meta-check-meta-audit-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-check-meta-audit
out/unity-meta-autofix-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -v -o "$@" ./tool/unity-meta-autofix
out/gh-action-yaml-gen-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=windows go build -v -o "$@" ./tool/gh-action/action-yaml-gen
out/gh-action-windows-arm64.exe: out
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -v -o "$@" ./tool/gh-action
.PHONY: all test clean darwin-amd64 linux-amd64 windows-amd64 darwin-arm64 linux-arm64 windows-arm64