#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem=qmake6

override_dh_auto_configure:
	dh_auto_configure -- PREFIX=/usr

# The .qm files are generated by lrelease from a system() call in
# src/src.pro; make sure that step did not fail silently.
execute_after_dh_auto_build:
	test -n "$$(ls src/translations/*.qm 2>/dev/null)"

# Tests are not built (src/src.pro does not list the tests subdir).
override_dh_auto_test:

# The system service is D-Bus activated (SystemdService= in the D-Bus
# service file); do not enable or start it at boot.
override_dh_installsystemd:
	dh_installsystemd --no-enable --no-start

execute_after_dh_auto_clean:
	rm -f src/translations/*.qm
