fix-release-version-info 338 Bytes
Newer Older
1 2
--- a/Makefile
+++ b/Makefile
Bernd Zeimetz's avatar
Bernd Zeimetz committed
3 4 5
@@ -15,7 +15,7 @@
 
 CFLAGS ?= -O2 -Wall -Wshadow
6
 
Bernd Zeimetz's avatar
Bernd Zeimetz committed
7
-GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always 2>/dev/null || date +%F)
8 9 10
+GIT_VERSION := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
 GVCFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 
Bernd Zeimetz's avatar
Bernd Zeimetz committed
11
 override CFLAGS += $(GVCFLAGS) -pthread