-
Notifications
You must be signed in to change notification settings - Fork 52
/
Makefile
executable file
·28 lines (22 loc) · 906 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
all: wrp
wrp: wrp.go
go build -a
cross:
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux
GOOS=freebsd GOARCH=amd64 go build -a -o wrp-amd64-freebsd
GOOS=openbsd GOARCH=amd64 go build -a -o wrp-amd64-openbsd
GOOS=darwin GOARCH=amd64 go build -a -o wrp-amd64-macos
GOOS=darwin GOARCH=arm64 go build -a -o wrp-arm64-macos
GOOS=windows GOARCH=amd64 go build -a -o wrp-amd64-windows.exe
GOOS=linux GOARCH=arm go build -a -o wrp-arm-linux
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
docker-local:
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest -f Dockerfile.local --load .
docker-push:
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
docker-clean:
docker buildx prune -a -f
clean:
rm -rf wrp-* wrp