#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Parallel builds are disabled because the generation of translations/i18n_ru.qm
# in the qmake file is incorrectly ordered.

%:
	dh $@ --buildsystem=qmake_qt4 --no-parallel

override_dh_auto_clean:
	dh_auto_clean
	rm -f Makefile_QT
	rm -f Resources/translations/i18n_*.qm

override_dh_fixperms:
	dh_fixperms
	cd debian/faustworks && \
	chmod 0644 usr/share/FaustWorks/Resources/*
