#!/usr/bin/make -f

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

DPKG_EXPORT_BUILDFLAGS = 1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --with systemd,sphinxdoc --buildsystem=cmake

override_dh_auto_build:
	dh_auto_build --parallel
	dh_auto_build -- manual-html

override_dh_strip:
	dh_strip --ddeb-migration='libgammu-dbg (<< 1.37.0-1~)'

override_dh_compress:
	dh_compress -X.js -Xobjects.inv -X.txt -X.py

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_auto_configure:
	dh_auto_configure -- -DINSTALL_LIBDATA_DIR=/usr/lib/${DEB_HOST_MULTIARCH}
