#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure \
		-- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
		"QMAKE_CXXFLAGS=$(CFLAGS)" \
		accounts-qml-module.pro

override_dh_auto_install:
	dh_auto_install --no-parallel

override_dh_install:
	-rmdir debian/tmp/usr/share/doc/accounts-qml-module/html/images/
	dh_install -X .gitignore

override_dh_clean:
	dh_clean
	# remove build-cruft stemming from make docs-html call during dh_auto_build override
	rm -rf doc/html/*

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