#!/usr/bin/make -f
%:
	dh $@ --buildsystem=phppear --with phppear

override_dh_auto_clean:
	rm -rf DirectoryScanner-*/build

override_dh_auto_test:
ifeq (,$(filter nocheck stage1, $(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
	cd DirectoryScanner-* && phpunit
else
	@echo "** tests disabled"
endif

get-orig-source:
	uscan --verbose --force --rename
