#!/usr/bin/make -f

%:
	dh $@ --with python2

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-python \
		--with-perl=/usr/bin/perl \
		--disable-ruby \
		--disable-csharp \
		--disable-apache \
		--enable-gettext

override_dh_auto_build:
	dh_auto_build
	$(MAKE) -C $(CURDIR)/python distclean
	$(MAKE) -C $(CURDIR)/python PYTHON=/usr/bin/python2.7 PYTHON_INC=-I/usr/include/python2.7

override_dh_auto_clean:
	if [ -f rules.mk ];then $(MAKE) distclean;fi
