#!/usr/bin/make -f

export PYBUILD_INSTALL_ARGS_python3=--install-lib=usr/share/gufw\
		--install-scripts=usr/bin

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

override_dh_auto_clean:
	dh_auto_clean --
	if [ -f "debian/gufw.pot" ]; then \
		mv debian/gufw.pot po/gufw.pot; \
	fi

override_dh_auto_build:
	# create a copy of po/gufw.pot before build as it is changed by setup.py
	cp po/gufw.pot debian/gufw.pot
	dh_auto_build --
