wrp/Makefile

31 lines
826 B
Makefile
Raw Normal View History

2019-08-04 16:01:55 +00:00
all: wrp
2019-06-04 08:42:22 +00:00
2020-10-29 14:16:14 +00:00
wrp: wrp.go statik
2019-08-04 16:01:55 +00:00
go build wrp.go
2019-06-04 08:42:22 +00:00
2020-10-29 14:16:14 +00:00
cross: statik
2019-08-04 16:01:55 +00:00
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=windows GOARCH=amd64 go build -a -o wrp-amd64-windows.exe wrp.go
2021-03-22 13:28:37 +00:00
GOOS=windows GOARCH=386 go build -a -o wrp-386-windows.exe wrp.go
2019-08-04 16:01:55 +00:00
GOOS=linux GOARCH=arm go build -a -o wrp-arm-linux wrp.go
2019-11-14 08:52:25 +00:00
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
2019-06-06 07:57:53 +00:00
2020-10-29 14:16:14 +00:00
statik: wrp.html
go generate
2019-08-04 16:01:55 +00:00
docker: wrp
docker build -t tenox7/wrp:latest .
2019-06-04 08:42:22 +00:00
2019-10-15 05:24:14 +00:00
dockerhub:
docker push tenox7/wrp:latest
gcrio:
docker tag tenox7/wrp:latest gcr.io/tenox7/wrp
docker push gcr.io/tenox7/wrp
2019-06-04 08:42:22 +00:00
clean:
2020-10-29 14:16:14 +00:00
rm -rf wrp-* wrp statik