mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
e1309e1323
Updates #5210 Change-Id: I2e950b4776636b4ea89b6566b60e4a87596a3a43 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
IMAGE_REPO ?= tailscale/tailscale
|
|
SYNO_ARCH ?= "amd64"
|
|
SYNO_DSM ?= "7"
|
|
|
|
usage:
|
|
echo "See Makefile"
|
|
|
|
vet:
|
|
./tool/go vet ./...
|
|
|
|
tidy:
|
|
./tool/go mod tidy
|
|
|
|
updatedeps:
|
|
./tool/go run github.com/tailscale/depaware --update tailscale.com/cmd/tailscaled
|
|
./tool/go run github.com/tailscale/depaware --update tailscale.com/cmd/tailscale
|
|
|
|
depaware:
|
|
./tool/go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscaled
|
|
./tool/go run github.com/tailscale/depaware --check tailscale.com/cmd/tailscale
|
|
|
|
buildwindows:
|
|
GOOS=windows GOARCH=amd64 ./tool/go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
build386:
|
|
GOOS=linux GOARCH=386 ./tool/go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
buildlinuxarm:
|
|
GOOS=linux GOARCH=arm ./tool/go install tailscale.com/cmd/tailscale tailscale.com/cmd/tailscaled
|
|
|
|
buildmultiarchimage:
|
|
./build_docker.sh
|
|
|
|
check: staticcheck vet depaware buildwindows build386 buildlinuxarm
|
|
|
|
staticcheck:
|
|
./tool/go run honnef.co/go/tools/cmd/staticcheck -- $$(./tool/go list ./... | grep -v tempfork)
|
|
|
|
spk:
|
|
PATH="${PWD}/tool:${PATH}" ./tool/go run github.com/tailscale/tailscale-synology@main -o tailscale.spk --source=. --goarch=${SYNO_ARCH} --dsm-version=${SYNO_DSM}
|
|
|
|
spkall:
|
|
mkdir -p spks
|
|
PATH="${PWD}/tool:${PATH}" ./tool/go run github.com/tailscale/tailscale-synology@main -o spks --source=. --goarch=all --dsm-version=all
|
|
|
|
pushspk: spk
|
|
echo "Pushing SPK to root@${SYNO_HOST} (env var SYNO_HOST) ..."
|
|
scp tailscale.spk root@${SYNO_HOST}:
|
|
ssh root@${SYNO_HOST} /usr/syno/bin/synopkg install tailscale.spk
|