From ed3fcb3757b5c89b3c8ffdbece702032f3030246 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 17 Nov 2022 09:00:06 -0500 Subject: [PATCH] Use git tag to get version in Makefile. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 54386398..c3684d5d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ RACK_DIR ?= . VERSION_MAJOR := 2 -# VERSION := 2.git.$(shell git rev-parse --short HEAD) -VERSION := 2.1.2 +VERSION := $(shell git describe --tags) +VERSION := $(patsubst v%,%,$(VERSION)) FLAGS += -Iinclude -Idep/include