#!/usr/bin/make -f

include /usr/share/pkg-kde-tools/qt-kde-team/3/debian-qt-kde.mk

version := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')

override_dh_auto_configure:
	$(overridden_command) -- -DVERSION_STRING_FULL=$(version)

override_dh_strip:
	dh_strip --dbg-package=kubuntu-driver-manager-dbg

kubuntu_rake:
	rm -rf .kubuntu-rake
	if [ -e .git ]; then \
		git clone kde:scratch/sitter/kubuntu-rake .kubuntu-rake; \
		cp .kubuntu-rake/Rakefile .; \
	fi
	if [ -e Rakefile ]; then rake; fi

override_dh_auto_clean: kubuntu_rake
	dh_auto_clean
