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

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	cp debian/autoload.php lib/autoload.php

override_dh_auto_test:
	mkdir -p vendor
	cp debian/autoload.test.php vendor/autoload.php
	SYMFONY_DEPRECATIONS_HELPER=weak phpunit \
		--include-path lib \
		--do-not-cache-result \
		--display-deprecations \
		--display-phpunit-deprecations

override_dh_fixperms:
	dh_fixperms --
	find debian/php-swiftmailer/usr/share/php/Swift -type f -print0 | xargs -r0 chmod -x ;
