#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

override_dh_auto_configure:
	dh_auto_configure -- --enable-docs --enable-compile-warnings=yes

override_dh_auto_build:
	[ -d "doc/_static" ] || mkdir "doc/_static"; \
	[ -d "doc/_templates" ] || mkdir "doc/_templates"; \
	dh_auto_build

override_dh_compress:
	dh_compress -X.rst -X.js -X.html -X.txt

override_dh_auto_test-arch:
	# must be executed consecutively lest they interfere with each other!
	dh_auto_test --no-parallel

%:
	dh $@ --with=autoreconf,sphinxdoc
