From 29f32e4a3ad4488f01af44eb111f0b3c13a39234 Mon Sep 17 00:00:00 2001 From: Matthias Fulz Date: Thu, 1 Jul 2021 12:32:51 +0200 Subject: [PATCH] Improved version setting for makefile --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e232ab..ac42ad9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,10 @@ LIBDIR ?= $(PREFIX)/lib CNFDIR ?= /etc ARCHBUILDER_LIB_DIR ?= $(LIBDIR)/$(PROGNM) ARCHBUILDER_CONF_DIR ?= $(CNFDIR)/$(PROGNM) -ARCHBUILDER_VERSION ?= 0.9.3 +ARCHBUILDER_VERSION ?= $(shell git describe --tags || true) +ifeq ($(ARCHBUILDER_VERSION),) + ARCHBUILDER_VERSION := 0.9.4 +endif .PHONY: install build archbuilder