Use the package version as the version number compiled into the binary.

This commit is contained in:
Oliver Jowett 2014-12-10 12:25:43 +00:00
parent 890d1afbf1
commit c6077b1e6c
4 changed files with 10 additions and 4 deletions

4
debian/rules vendored
View file

@ -14,8 +14,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
VER=$(shell dpkg-parsechangelog -SVersion)
override_dh_auto_build:
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\"'
dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\" -DMODES_DUMP1090_VERSION=\"$(VER)\"'
override_dh_install:
dh_install