#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer -Xcopyright.md -Xdownload.md

override_dh_auto_build:
	phpab \
		--output src/ProxyManager/autoload.php \
		--template debian/autoload.php.tpl \
		src/ProxyManager

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	phpcs --standard=PSR2 ./src/
else
	@echo "** tests disabled"
endif
