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

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

export DPKG_GENSYMBOLS_CHECK_LEVEL=4

include /usr/share/dpkg/architecture.mk

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=lib/telepathy

override_dh_auto_test:
#	CTEST_OUTPUT_ON_FAILURE=1 make -C obj-$(DEB_HOST_GNU_TYPE) test

# Unfortunately dh_apparmor doesn't come with a debhelper addon (i.e. the
# ability to specify `dh --with=apparmor`). Its manpage suggests adding it to
# override_dh_install. However, we can do better.
execute_after_dh_auto_install:
	dh_apparmor --profile-name=usr.lib.telepathy.telepathy-ofono -ptelepathy-ofono 

%:
	dh $@
