From f56e1480d1e5f18b6630d695556ddee1241f88fb Mon Sep 17 00:00:00 2001 From: Alex P Date: Sat, 18 Oct 2025 00:48:20 +0300 Subject: [PATCH] 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 --install Useful for testing version-gated features without bumping the default production version. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e519a75a..e144fa3e 100644 --- a/Makefile +++ b/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