-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 1.05 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
release: tidy lint doc clean build-windows-amd64 build-linux-amd64 build-linux-arm build-darwin-amd64 build-darwin-arm64
build-windows-amd64:
env CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build
zip bin/amqp-message-remover-windows-amd64.zip amqp-message-remover.exe
go clean
build-linux-amd64:
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
zip bin/amqp-message-remover-linux-amd64.zip amqp-message-remover
go clean
build-linux-arm:
env CGO_ENABLED=0 GOOS=linux GOARCH=arm go build
zip bin/amqp-message-remover-linux-arm.zip amqp-message-remover
go clean
build-darwin-arm64:
env CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build
zip bin/amqp-message-remover-darwin-arm64.zip amqp-message-remover
go clean
build-darwin-amd64:
env CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build
zip bin/amqp-message-remover-darwin-amd64.zip amqp-message-remover
go clean
lint:
golangci-lint run ./... --fix
doc: build
./amqp-message-remover doc doc
build: vendor
go build
vendor: tidy
go mod vendor
tidy:
go mod tidy
mod-verify:
go mod verify
clean:
go clean