#!/usr/bin/make -f

%:
	dh $@ --with python2,python3

override_dh_auto_clean:
	python setup.py clean -a
	find . -name \*.pyc -exec rm {} \;

override_dh_auto_build:
	python setup.py build --force

override_dh_auto_install:
	python setup.py install --force --root=debian/python-lpreports \
		--no-compile -O0 --install-layout=deb --prefix=/usr --install-data=.
	python3 setup.py install --force --root=debian/python3-lpreports \
		--no-compile -O0 --install-layout=deb --prefix=/usr --install-data=.

override_dh_python2:
	dh_python2 --no-guessing-versions
