#!/usr/bin/make -f

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	python3 -m unittest discover -s test -v

override_dh_auto_clean:
	python3 setup.py clean -a
	rm -rf $$(find gajim/ -name __pycache__)

override_dh_auto_configure:
	python3 setup.py config

override_dh_auto_build:
	python3 setup.py build

override_dh_auto_install:
	python3 setup.py install --install-layout=deb --root=$(CURDIR)/debian/gajim

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog
