From 177dd5bef810eb2582a780b5fd45718fb2ecbb4d Mon Sep 17 00:00:00 2001 From: Anders Blomdell <anders.blomdell@control.lth.se> Date: Thu, 1 Jun 2017 18:14:06 +0200 Subject: [PATCH] Make version depend on git tag --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5b93c4c..112b364 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ TARGET=md5toc -MD5TOC_VERSION=20160721 +MD5TOC_VERSION=$(shell git describe | sed -e 's/^v//') SOURCES=Makefile md5toc.c md5toc.spec config.h md5.c md5.h CFLAGS=-Wall -Werror -I. -DMD5TOC_VERSION='"$(MD5TOC_VERSION)"' -- GitLab