From 8d61b4e499de2f9dafba6a592a31427e1d0bbc3f Mon Sep 17 00:00:00 2001 From: alon Date: Tue, 7 Jan 2025 15:34:11 +0000 Subject: [PATCH] Makefile, VERSION: manage our own version We do not need to be depends on any external repo's version. this is an independed repo that need to controll it's own version Signed-off-by: alon --- Makefile | 2 +- VERSION | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 VERSION diff --git a/Makefile b/Makefile index b4bd136..8bc8295 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ DISCOVERY_CLIENT_RELEASE = 1 override BIN_NAME := lb-nvme-discovery-client override DEFAULT_REL := 0.0.0 -override VERSION_RELEASE := $(or $(shell cat $(WORKSPACE_TOP)/los-csi/VERSION 2>/dev/null),$(DEFAULT_REL)) +override VERSION_RELEASE := $(or $(shell cat VERSION 2>/dev/null),$(DEFAULT_REL)) override RELEASE := $(if $(BUILD_ID),$(VERSION_RELEASE).$(BUILD_ID),$(VERSION_RELEASE)) override BUILD_HOST := $(shell hostname) diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..84cc529 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.18.0