#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined

%:
	dh $@ --parallel

override_dh_auto_configure:
	dh_auto_configure -- -DDISABLE_WERROR=ON -DCMAKE_INSTALL_LOCAL_ONLY=0 -DHAVE_DOT=YES

override_dh_auto_build:
	dh_auto_build
ifeq (,$(findstring nodocs,$(DEB_BUILD_OPTIONS)))
	dh_auto_build -- doxygen-doc
endif

override_dh_auto_test:
	xvfb-run -a -s "-screen 0 1024x768x24" dbus-launch --exit-with-session dh_auto_test

override_dh_install:
	dh_install --list-missing

override_dh_installdocs:
	dh_installdocs -Nlibtelepathy-qt4-dbg -Nlibtelepathy-qt4-farstream -Nlibtelepathy-qt4-dev

override_dh_installchangelogs:
	dh_installchangelogs -Nlibtelepathy-qt4-dbg -Nlibtelepathy-qt4-farstream -Nlibtelepathy-qt4-dev

override_dh_makeshlibs:
	dh_makeshlibs -V

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