From 8fdc3a042824a0b4e859235e1ca71799b6ec5334 Mon Sep 17 00:00:00 2001 From: mappu Date: Wed, 16 Apr 2025 18:17:52 +1200 Subject: [PATCH] makefile: allow overriding $GO --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b9ef962..161b723 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ - VERSION := 1.0.3 GOFLAGS_L := -ldflags='-s -w -X main.Version=v$(VERSION)' -buildvcs=false -gcflags='-trimpath=$(CURDIR)' -asmflags='-trimpath=$(CURDIR)' GOFLAGS_W := -ldflags='-s -w -X main.Version=v$(VERSION) -H windowsgui' -buildvcs=false --tags=windowsqtstatic -gcflags='-trimpath=$(CURDIR)' -asmflags='-trimpath=$(CURDIR)' SHELL := /bin/bash # Allow overriding DOCKER with e.g. sudo docker DOCKER := docker +GO := go MIQT_UIC := miqt-uic MIQT_RCC := miqt-rcc GO_WINRES := go-winres @@ -48,7 +48,7 @@ rsrc_windows_amd64.syso: windows-manifest.json # Linux release build/qbolt: $(SOURCES) - go build $(GOFLAGS_L) -o build/qbolt + $(GO) build $(GOFLAGS_L) -o build/qbolt upx build/qbolt build/qbolt-${VERSION}-debian12-x86_64.tar.xz: build/qbolt