#!/usr/bin/make -f

CMAKE_OPTS = -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 \
             -DCMAKE_INSTALL_PREFIX=/usr \
             -DREMOVE_KDE_TRANSLATIONS=TRUE

%:
	dh $@ --parallel

override_dh_auto_configure:
	if test -f 'CMakeLists.txt'; then rm 'CMakeLists.txt'; fi
	./scripts/autogen.sh
	while read lang; do echo "add_subdirectory( $$lang )" >> 'CMakeLists.txt'; done < 'subdirs'
	dh_auto_configure -- $(CMAKE_OPTS)

