2021-10-28 13:51:09 +03:00
|
|
|
IMAGE_REPO ?= tailscale/tailscale
|
|
|
|
|
2020-06-15 11:04:19 -07:00
|
|
|
usage:
|
|
|
|
echo "See Makefile"
|
|
|
|
|
2020-08-24 21:35:27 -07:00
|
|
|
vet:
|
|
|
|
go vet ./...
|
|
|
|
|
2020-09-09 12:17:44 -07:00
|
|
|
updatedeps:
|
|
|
|
go run github.com/tailscale/depaware --update tailscale.com/cmd/tailscaled
|
|
|
|
go run github.com/tailscale/depaware --update tailscale.com/cmd/tailscale
|
|
|
|
|
|
|
|
depaware:
|
|
|
|
go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscaled
|
|
|
|
go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscale
|
|
|
|
|
2021-02-27 21:42:34 -08:00
|
|
|
buildwindows:
|
|
|
|
GOOS=windows GOARCH=amd64 go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
|
2021-03-01 11:19:20 -08:00
|
|
|
build386:
|
|
|
|
GOOS=linux GOARCH=386 go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
|
2021-08-18 15:36:04 -07:00
|
|
|
buildlinuxarm:
|
|
|
|
GOOS=linux GOARCH=arm go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
|
2021-10-28 13:51:09 +03:00
|
|
|
buildmultiarchimage:
|
2021-11-21 20:52:19 -08:00
|
|
|
./build_docker.sh
|
2021-10-28 13:51:09 +03:00
|
|
|
|
2021-08-18 15:36:04 -07:00
|
|
|
check: staticcheck vet depaware buildwindows build386 buildlinuxarm
|
2020-06-15 11:04:19 -07:00
|
|
|
|
|
|
|
staticcheck:
|
|
|
|
go run honnef.co/go/tools/cmd/staticcheck -- $$(go list ./... | grep -v tempfork)
|
2021-12-06 09:22:21 -08:00
|
|
|
|
|
|
|
spk:
|
|
|
|
go run github.com/tailscale/tailscale-synology@main --version=build -o tailscale.spk --source=.
|
|
|
|
|
|
|
|
pushspk: spk
|
|
|
|
echo "Pushing SPKG to root@${SYNOHOST} (env var SYNOHOST) ..."
|
|
|
|
scp tailscale.spk root@${SYNOHOST}:
|
|
|
|
ssh root@${SYNOHOST} /usr/syno/bin/synopkg install tailscale.spk
|