#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@ --buildsystem=phppear --with phppear

SRCDIR = Mail_Mime-$(DEB_VERSION_UPSTREAM)
execute_before_dh_auto_configure:
	mkdir $(SRCDIR)
	ln -st $(SRCDIR) ../Mail ../tests ../README

override_dh_auto_test:
	cd Mail_Mime-* && pear run-tests -d tests/*.phpt
