#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
REL_DESTDIR=debian/tmp

%:
	dh $@ --buildsystem=cmake --parallel

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=1

# clean out .la files which are discouraged from being installed
# (lintian)
override_dh_auto_install:
	dh_auto_install --destdir=`pwd`/$(REL_DESTDIR)
	find $(REL_DESTDIR) -name '*.la' -delete
