#!/usr/bin/make -f
#export DH_VERBOSE = 1

%:
	dh $@ --with phpcomposer

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	phpab	--output test-autoload.php \
		--template debian/autoload.php.tpl \
		NetscapeBookmarkParser.php tests/LoggerTestsUtils.php
	phpunit --do-not-cache-result --bootstrap test-autoload.php tests
	rm test-autoload.php
endif

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