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

override_dh_auto_build:
	phpab \
		--output src/autoload.php \
		--template debian/autoload.php.tpl \
		src
	mkdir --parents Nyholm
	ln -s ../src Nyholm/Psr7

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	phpunit --bootstrap debian/autoload.php --exclude-group internet
else
	@echo "** tests disabled"
endif
