Skip to content

Commit 87771a7

Browse files
committed
Merge branch 'main' of github.com:Wildlife-Systems/sensor-tools
2 parents a24e526 + b0c7dfb commit 87771a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ PREFIX = /usr
77
BINDIR = $(PREFIX)/bin
88

99
# Extract version from debian/changelog
10-
VERSION := $(shell head -1 debian/changelog | sed -n 's/.*([^)]*\([0-9][0-9.]*\)).*/\1/p')
11-
CPPFLAGS += -DVERSION="\"$(VERSION)\""
10+
VERSION := $(shell dpkg-parsechangelog -S Version 2>/dev/null || echo "unknown")
11+
CPPFLAGS += -DVERSION='"$(VERSION)"'
1212

1313
# Coverage flags (set COVERAGE=1 to enable)
1414
ifdef COVERAGE

0 commit comments

Comments
 (0)