makefile little fix with predefined variable

This commit is contained in:
rumanzo 2022-03-31 00:00:53 +03:00
parent 9e3eb528c1
commit b304a20555

View File

@ -12,7 +12,7 @@ commit=$(shell git rev-parse HEAD)
dockercmd=docker run --rm -v $(CURDIR):/usr/src/bt2qbt -w /usr/src/bt2qbt dockercmd=docker run --rm -v $(CURDIR):/usr/src/bt2qbt -w /usr/src/bt2qbt
buildtags = -tags forceposix buildtags = -tags forceposix
buildenvs = -e CGO_ENABLED=0 buildenvs = -e CGO_ENABLED=0
version = 1999 version = 1.999
ldflags = -ldflags="-X 'main.version=$(version)' -X 'main.commit=$(commit)' -X 'main.buildImage=golang:$(gotag)'" ldflags = -ldflags="-X 'main.version=$(version)' -X 'main.commit=$(commit)' -X 'main.buildImage=golang:$(gotag)'"
all: tests build all: tests build