From 9ab1772b641ec7f2b30be9f1b469307e897b2f77 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sat, 26 Apr 2025 11:25:01 +0200 Subject: [PATCH] Develop: Export SEMVER_MAJOR and SEMVER_MINOR in Makefile Signed-off-by: Michael Mayer --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index fb53c322d..b6c24fc98 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,9 @@ GOIMPORTS=goimports # Build version string. SEMVER_MAJOR ?= 1 +export SEMVER_MAJOR SEMVER_MINOR ?= $(shell date -u +%y%m) +export SEMVER_MINOR SEMVER_PATCH ?= $(shell date -u +%d) SEMVER_VERSION ?= $(SEMVER_MAJOR).$(SEMVER_MINOR).$(SEMVER_PATCH) export SEMVER_VERSION