mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-24 22:30:58 +00:00
23 lines
816 B
Makefile
Executable File
23 lines
816 B
Makefile
Executable File
all: wrp
|
|
|
|
wrp: wrp.go
|
|
go build wrp.go
|
|
|
|
cross:
|
|
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux wrp.go
|
|
GOOS=freebsd GOARCH=amd64 go build -a -o wrp-amd64-freebsd wrp.go
|
|
GOOS=openbsd GOARCH=amd64 go build -a -o wrp-amd64-openbsd wrp.go
|
|
GOOS=darwin GOARCH=amd64 go build -a -o wrp-amd64-macos wrp.go
|
|
GOOS=darwin GOARCH=arm64 go build -a -o wrp-arm64-macos wrp.go
|
|
GOOS=windows GOARCH=amd64 go build -a -o wrp-amd64-windows.exe wrp.go
|
|
GOOS=linux GOARCH=arm go build -a -o wrp-arm-linux wrp.go
|
|
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
|
|
|
|
docker: wrp
|
|
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux wrp.go
|
|
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
|
|
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
|
|
|
|
clean:
|
|
rm -rf wrp-* wrp
|