aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3feb11c..de51f1b 100644
--- a/Makefile
+++ b/Makefile
@@ -23,10 +23,7 @@ TESTS := $(patsubst test/%.c,$(BUILDDIR)/test_%,$(wildcard test/*.c))
TFLAGS ?= -g $(CFLAGS) $(CPPFLAGS) $(shell pkg-config --cflags cmocka)
TLIBS := $(LIBS) $(shell pkg-config --libs cmocka)
-VERSION := $(shell git describe --abbrev=8 --dirty --always --tags 2> /dev/null)
-ifeq ($(VERSION),)
-VERSION := v2.1.3
-endif
+VERSION != git describe --dirty --always --tags 2> /dev/null || echo v2.1.3
CFLAGS += -DIMV_VERSION=\""$(VERSION)"\"