Support build for other architectures

master
blallo 2023-03-08 23:25:46 +01:00
parent 12b8cab6f6
commit 1f013a9de6
Signed by: blallo
GPG Key ID: C530464EEDCF489A
1 changed files with 3 additions and 1 deletions

View File

@ -1,8 +1,10 @@
VERSION ?= dev
GO ?= go
GOARCH ?= amd64
build: ./bin ui-build
$(GO) build -o ./bin ./cmd/broadcast
GOOS=linux GOARCH=$(GOARCH) \
$(GO) build -o ./bin/broadcast-$(GOARCH) ./cmd/broadcast
./bin:
mkdir -p bin