#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --with python2,python3

override_dh_auto_install:
	set -e && for pyvers in $(shell pyversions -vr); do \
		python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
			--root $(CURDIR)/debian/python-pyudev; \
	done
	
	set -e && for pyvers in $(shell py3versions -sv); do \
		python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
			--root $(CURDIR)/debian/python3-pyudev; \
	done

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst
