#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
UPSTREAM_VERSION=$(shell dpkg-parsechangelog |  sed -n 's/^Version: \(.*\)/\1/p')

%:
	dh $@ --parallel

override_dh_auto_configure: src/core/version.h
	dh_auto_configure

src/core/version.h:
	echo "" > src/core/version.h
	echo "#pragma once" >> src/core/version.h
	echo "#define VKDT_VERSION \"${UPSTREAM_VERSION}\"" >> src/core/version.h

#override_dh_auto_install:
#	dh_auto_install -- prefix=/usr

#override_dh_install:
#	dh_install --list-missing -X.pyc -X.pyo
