diff options
-rw-r--r-- | Makefile | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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)"\" |