build: support configurable target architecture
This commit is contained in:
4
Makefile
4
Makefile
@@ -1,5 +1,7 @@
|
||||
WEB_DIR := web
|
||||
SDK_DIR := sdk
|
||||
ARCH ?= $(shell go env GOARCH)
|
||||
GOOS ?= $(shell go env GOOS)
|
||||
|
||||
.PHONY: web-install web-build sdk-install sdk-build build test vet check seed-pet-doctor docker-config docker-up docker-down docker-logs
|
||||
|
||||
@@ -16,7 +18,7 @@ sdk-build:
|
||||
cd $(SDK_DIR) && npm run build
|
||||
|
||||
build: web-build sdk-build
|
||||
go build -o bin/iqudo-top1 .
|
||||
GOOS=$(GOOS) GOARCH=$(ARCH) go build -o bin/iqudo-top1 .
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
Reference in New Issue
Block a user