mirror of https://github.com/jetkvm/kvm.git
build: allow VERSION and VERSION_DEV to be overridden via environment
Changed from immediate assignment (:=) to conditional assignment (?=) to allow developers to override version numbers when building. This enables building with custom versions for testing: VERSION=0.4.9 ./dev_deploy.sh -r <ip> --install Useful for testing version-gated features without bumping the default production version.
This commit is contained in:
parent
8189861bfa
commit
f56e1480d1
4
Makefile
4
Makefile
|
|
@ -2,8 +2,8 @@ BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
|
|||
BUILDDATE := $(shell date -u +%FT%T%z)
|
||||
BUILDTS := $(shell date -u +%s)
|
||||
REVISION := $(shell git rev-parse HEAD)
|
||||
VERSION_DEV := 0.4.9-dev$(shell date +%Y%m%d%H%M)
|
||||
VERSION := 0.4.8
|
||||
VERSION_DEV ?= 0.4.9-dev$(shell date +%Y%m%d%H%M)
|
||||
VERSION ?= 0.4.8
|
||||
|
||||
PROMETHEUS_TAG := github.com/prometheus/common/version
|
||||
KVM_PKG_NAME := github.com/jetkvm/kvm
|
||||
|
|
|
|||
Loading…
Reference in New Issue