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

override_dh_auto_build:
	phpab \
		--output src/Httpful/autoload.php \
		src/Httpful
	cp src/Httpful/Handlers/README.md debian/README_Handlers.md

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	phpunit -c tests/phpunit.xml
else
	echo "** tests disabled"
endif

override_dh_installchangelogs:
	dh_installchangelogs -k README.md
