From 3391593cb960958d16a83d214d28cdd9aa1d4c7d Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Thu, 11 Jan 2018 01:22:45 +0100 Subject: [PATCH] Installation: Keep version tag in a variable To prepare soname handling, we need to keep the version tag in a variable. Signed-off-by: Kai Krakow --- lib/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 178128f..a2d607d 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,3 +1,5 @@ +TAG := $(shell git describe --always --dirty || echo UNKNOWN) + default: libcrucible.so OBJS = \ @@ -22,7 +24,7 @@ depends.mk: *.cc mv -fv depends.mk.new depends.mk .version.cc: Makefile ../makeflags *.cc ../include/crucible/*.h - echo "namespace crucible { const char *VERSION = \"$(shell git describe --always --dirty || echo UNKNOWN)\"; }" > .version.new.cc + echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > .version.new.cc mv -f .version.new.cc .version.cc -include depends.mk