#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with pkgkde_symbolshelper --parallel

override_dh_auto_configure:
	dh_auto_configure -- -DDISABLE_WERROR=ON -DHAVE_DOT=YES \
	                     -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
	                     -DCMAKE_BUILD_TYPE=RelWithDebInfo \
	                     -DQT_DOC_DIR=/usr/share/qt4/doc

override_dh_auto_build-arch:
	dh_auto_build --parallel

override_dh_auto_build-indep:
	dh_auto_build -- doxygen-doc

# Do not run tests, as they fall into race conditions sometimes
override_dh_auto_test:

override_dh_strip:
	dh_strip --dbg-package=libtelepathy-qt4-dbg

override_dh_install:
	dh_install --list-missing

# -i is for the doc package, which doesn't depend on the shared library
override_dh_installdocs:
	dh_installdocs -a --link-doc=libtelepathy-qt4-2
	dh_installdocs -i
	dh_doxygen -i

override_dh_auto_clean:
	dh_auto_clean
	find . -name '*.pyc' -exec rm {} \;

get-orig-source:
	. debian/get-orig-source
