From 1f013a9de616cff626d00c23263982be4e238e07 Mon Sep 17 00:00:00 2001 From: Blallo Date: Wed, 8 Mar 2023 23:25:46 +0100 Subject: [PATCH] Support build for other architectures --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bcc9e45..a04e788 100644 --- a/Makefile +++ b/Makefile @@ -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