fix: version var in make file

This commit is contained in:
Lakhan Samani
2021-12-24 17:47:35 +05:30
parent 8f826e6c2f
commit 46a91fde20
3 changed files with 5 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ DEFAULT_VERSION=0.1.0-local
VERSION := $(or $(VERSION),$(DEFAULT_VERSION))
cmd:
cd server && go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
cd server && go build -ldflags "-w -X main.VERSION=$(VERSION)" -o '../build/server'
clean:
rm -rf build
test: