wrp/Makefile

29 lines
906 B
Makefile
Raw Normal View History

2019-08-04 16:01:55 +00:00
all: wrp
2019-06-04 08:42:22 +00:00
2022-03-17 02:27:34 +00:00
wrp: wrp.go
2024-07-08 06:40:46 +00:00
go build -a
2019-06-04 08:42:22 +00:00
2022-03-17 02:27:34 +00:00
cross:
2024-07-08 06:40:46 +00:00
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
2019-06-06 07:57:53 +00:00
2024-06-10 08:58:38 +00:00
docker-local:
2024-07-09 09:07:50 +00:00
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 .
2024-06-10 08:58:38 +00:00
docker-push:
2024-05-23 07:33:40 +00:00
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
2019-10-15 05:24:14 +00:00
2024-07-09 09:07:50 +00:00
docker-clean:
docker buildx prune -a -f
2019-06-04 08:42:22 +00:00
clean:
2022-03-17 02:27:34 +00:00
rm -rf wrp-* wrp