Support build for other architectures

This commit is contained in:
sfigato 2023-03-08 23:25:46 +01:00
parent 12b8cab6f6
commit 1f013a9de6
Signed by: blallo
GPG Key ID: C530464EEDCF489A

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