#!/usr/bin/make -f # -*- makefile -*- %: dh $@ override_dh_auto_configure: ./autogen.sh dh_auto_configure --buildsystem=autoconf # find all the ...-dbg packages, and use dh_strip to separate out their debug symbols into the debug package override_dh_strip: perl -ne 'print "$$1\n" if /^Package:\s*(\S+)-dbg/' debian/control | xargs -n1 -I{} dh_strip -p{} --dbg-package={}-dbg