Skip to content

Commit

Permalink
server: use $(GO) from Makefile.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
khorben authored and Fajfa committed Jan 24, 2025
1 parent 628e7b2 commit 1993e92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ include Makefile.inc
BUILD_FLAVOUR ?= corteza
BUILD_TIME ?= $(shell date +%FT%T%z)
BUILD_VERSION ?= $(shell git describe --tags --abbrev=0)
BUILD_ARCH ?= $(shell go env GOARCH)
BUILD_OS ?= $(shell go env GOOS)
BUILD_ARCH ?= $(shell $(GO) env GOARCH)
BUILD_OS ?= $(shell $(GO) env GOOS)
BUILD_OS_is_windows = $(filter windows,$(BUILD_OS))
BUILD_DEST_DIR ?= build
BUILD_NAME = $(BUILD_FLAVOUR)-server-$(BUILD_VERSION)-$(BUILD_OS)-$(BUILD_ARCH)
Expand Down Expand Up @@ -81,7 +81,7 @@ help:
build: $(BUILD_DEST_DIR)/$(BUILD_BIN_NAME)

$(BUILD_DEST_DIR)/$(BUILD_BIN_NAME):
GOOS=$(BUILD_OS) GOARCH=$(BUILD_ARCH) go build $(LDFLAGS) -o $@ cmd/corteza/main.go
GOOS=$(BUILD_OS) GOARCH=$(BUILD_ARCH) $(GO) build $(LDFLAGS) -o $@ cmd/corteza/main.go

release: build $(BUILD_DEST_DIR)/$(RELEASE_NAME)

Expand Down

0 comments on commit 1993e92

Please sign in to comment.