#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	/usr/bin/phpize
	dh_auto_configure

override_dh_auto_test:
	NO_INTERACTION=1 make test

override_dh_auto_install:
	INSTALL_ROOT=$(CURDIR)/debian/php-luasandbox make install

override_dh_gencontrol:
	echo "php:Depends=phpapi-$(shell php-config --phpapi)" >> debian/php-luasandbox.substvars
	dh_gencontrol

override_dh_auto_clean:
	/usr/bin/phpize --clean
	dh_auto_clean

