Support build for other architectures
This commit is contained in:
parent
12b8cab6f6
commit
1f013a9de6
4
Makefile
4
Makefile
|
@ -1,8 +1,10 @@
|
||||||
VERSION ?= dev
|
VERSION ?= dev
|
||||||
GO ?= go
|
GO ?= go
|
||||||
|
GOARCH ?= amd64
|
||||||
|
|
||||||
build: ./bin ui-build
|
build: ./bin ui-build
|
||||||
$(GO) build -o ./bin ./cmd/broadcast
|
GOOS=linux GOARCH=$(GOARCH) \
|
||||||
|
$(GO) build -o ./bin/broadcast-$(GOARCH) ./cmd/broadcast
|
||||||
|
|
||||||
./bin:
|
./bin:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user