#!/usr/bin/make -f
# -*- makefile -*-

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

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

%:
	dh $@ --with autotools_dev

override_dh_auto_install:
	$(MAKE) DESTDIR=$(CURDIR)/debian/$(DEBPKGNAME) install

override_dh_auto_clean:
	dh_auto_clean
	if [ -f Makefile ] ; then make distclean ; fi
