makefile: allow overriding $GO
This commit is contained in:
parent
18f10fc1b4
commit
8fdc3a0428
4
Makefile
4
Makefile
@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
VERSION := 1.0.3
|
VERSION := 1.0.3
|
||||||
GOFLAGS_L := -ldflags='-s -w -X main.Version=v$(VERSION)' -buildvcs=false -gcflags='-trimpath=$(CURDIR)' -asmflags='-trimpath=$(CURDIR)'
|
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)'
|
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
|
SHELL := /bin/bash
|
||||||
# Allow overriding DOCKER with e.g. sudo docker
|
# Allow overriding DOCKER with e.g. sudo docker
|
||||||
DOCKER := docker
|
DOCKER := docker
|
||||||
|
GO := go
|
||||||
MIQT_UIC := miqt-uic
|
MIQT_UIC := miqt-uic
|
||||||
MIQT_RCC := miqt-rcc
|
MIQT_RCC := miqt-rcc
|
||||||
GO_WINRES := go-winres
|
GO_WINRES := go-winres
|
||||||
@ -48,7 +48,7 @@ rsrc_windows_amd64.syso: windows-manifest.json
|
|||||||
# Linux release
|
# Linux release
|
||||||
|
|
||||||
build/qbolt: $(SOURCES)
|
build/qbolt: $(SOURCES)
|
||||||
go build $(GOFLAGS_L) -o build/qbolt
|
$(GO) build $(GOFLAGS_L) -o build/qbolt
|
||||||
upx build/qbolt
|
upx build/qbolt
|
||||||
|
|
||||||
build/qbolt-${VERSION}-debian12-x86_64.tar.xz: build/qbolt
|
build/qbolt-${VERSION}-debian12-x86_64.tar.xz: build/qbolt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user