#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpab \
		--output lib/Doctrine/Deprecations/autoload.php \
		--template debian/autoload.php.tpl \
		lib/Doctrine/Deprecations
	mkdir --parents vendor
	ln -s /usr/share/php/Psr lib/
	phpabtpl \
		--require doctrine/deprecations \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		test_fixtures

override_dh_auto_test:
	phpunit --include-path lib
