We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aea651b commit b0c7dfbCopy full SHA for b0c7dfb
Makefile
@@ -7,7 +7,7 @@ PREFIX = /usr
7
BINDIR = $(PREFIX)/bin
8
9
# Extract version from debian/changelog
10
-VERSION := $(shell head -1 debian/changelog | sed -n 's/.*(\([0-9][0-9.]*\)[^)]*).*/\1/p')
+VERSION := $(shell dpkg-parsechangelog -S Version 2>/dev/null || echo "unknown")
11
CPPFLAGS += -DVERSION='"$(VERSION)"'
12
13
# Coverage flags (set COVERAGE=1 to enable)
0 commit comments