#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=pyinsane2

pyinsane2/_version.py: debian/_version.py.in
	sed 's,@DEB_VERSION_UPSTREAM@,$(DEB_VERSION_UPSTREAM),g' $< > $@

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean: pyinsane2/_version.py
	dh_auto_clean
	rm -f pyinsane2/_version.py

override_dh_auto_configure: pyinsane2/_version.py
	dh_auto_configure
