#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -Bbuild-qt4 -- 
	dh_auto_configure -Bbuild-qt5 -- -DUSE_QT5=1

override_dh_auto_build:
	dh_auto_build -Dbuild-qt4
	dh_auto_build -Dbuild-qt5
	dh_auto_build -Dbuild-qt4 -- doc
	dh_auto_build -Dbuild-qt5 -- doc

override_dh_auto_install:
	dh_auto_install -Dbuild-qt4
	dh_auto_install -Dbuild-qt5

override_dh_install:
	dh_install --list-missing

override_dh_strip:
	dh_strip --dbg-package=libqtspell-dbg

.PHONY: override_dh_auto_configure override_dh_auto_build override_dh_auto_install override_dh_install override_dh_strip
