#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
%:
	dh $@ --with python2,quilt

override_dh_auto_configure:
	dh_auto_configure -- --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --with-bash-src=/usr/include/bash/

override_dh_installdocs:
	makeinfo --html --output=doc/bashdb.html doc/bashdb.texi
	dh_installdocs

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_auto_install:
	dh_auto_install
	rm -rf $(TMP)/usr/share/bashdb/builtin

override_dh_auto_test:
	VERBOSE=1 dh_auto_test
