#!/usr/bin/make -f

DEB_COMPRESS_EXCLUDE=package.xml

test_stamp = debian/test-stamp

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/pear.mk

install/php-net-sieve::
	#remove empty directories
	find debian/php-net-sieve -type d -empty -delete

#
# Disabled test execution due to 607372, which makes phpunit unusable for this
#
#make build depend on the result of the tests execution
#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
#common-build-arch common-build-indep:: $(test_stamp)
#$(test_stamp):
#	cd $(PEAR_SOURCE_DIR) && phpunit tests
#	touch $@
#
#clean::
#	$(RM) $(test_stamp)
#endif
