#! /usr/bin/make -f
-CDBS = /usr/share/cdbs/1
+DH_OPTIONS = --parallel -Bdebian/build
-include $(CDBS)/rules/debhelper.mk
-include $(CDBS)/class/makefile.mk
+%:; dh $@ $(DH_OPTIONS)
-DEB_MAKE_CLEAN_TARGET = clean
-DEB_MAKE_INSTALL_TARGET = install \
- prefix=/usr mandir=/usr/share/man \
- DESTDIR=debian/tmp
+override_dh_auto_configure:
+ dh_auto_configure $(DH_OPTIONS) -- \
+ $(shell dpkg-buildflags --export=configure)