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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

execute_before_dh_auto_configure:
	# Backup .db file that gets modified during build...
	cp plugins/bn/src/database_bn.db plugins/bn/src/database_bn.db.bak

override_dh_auto_test:
	xvfb-run -a -- dh_auto_test

execute_before_dh_clean:
	# Restore .db file that gets modified at build time
	-mv plugins/bn/src/database_bn.db.bak plugins/bn/src/database_bn.db
	# Remove .mo files from po/ after build (before next build)
	-rm po/*.mo

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
