#!/usr/bin/make -f

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

-include /usr/share/dpkg/buildtools.mk
export PKG_CONFIG ?= pkg-config

PLG_PACKAGE = $(filter-out %-dbg, $(shell dh_listpackages))
DBG_PACKAGE = $(filter %-dbg, $(shell dh_listpackages))

%:
	dh $@ --with vdrplugin

override_dh_strip:
	dh_strip --dbgsym-migration='vdr-plugin-live-dbg (<< 1:1.8.0-1~)'

override_dh_auto_install:
	dh_auto_install --destdir=debian/$(PLG_PACKAGE)