#! /usr/bin/make -f

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

export DEB_BUILD_MAINT_OPTIONS := hardenining:+all
zncver := $(shell dpkg-query -W -f'$${source:Version}' znc-dev)

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- version="$(DEB_VERSION)" curl=yes

override_dh_auto_install:
	@# the install target of the makefile is really funny.

override_dh_gencontrol:
	dh_gencontrol -- -Vznc="znc (>= $(zncver)), znc (<< $(zncver).~)"
