#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export V = 1

%:
	dh $@ --with autoreconf --list-missing

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-static \
		--with-gnutls \
		--without-openssl-version-check \
		--htmldir=/usr/share/doc/openconnect/html \
		--with-system-cafile=/etc/ssl/certs/ca-certificates.crt \
		--with-vpnc-script=/usr/share/vpnc-scripts/vpnc-script
	# Do not let version.c get rebuilt from our git repo
	touch version.c

override_dh_installchangelogs:
	dh_installchangelogs www/changelog.html

override_dh_compress:
	dh_compress -Xhtml/changelog.html
