#!/usr/bin/make -f

NULL =

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --			\
		-DBUILD_QML_MODULE=ON		\
		$(NULL)

execute_after_dh_auto_build:
ifneq ($(filter %-doc,$(shell dh_listpackages)),)
	cd docs && qdoc quickflux.qdocconf
endif

execute_after_dh_installexamples:
	find debian/ -name .gitignore -print -delete

execute_after_dh_clean:
	rm docs/html/ -Rfv

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --repack --destdir=..
