#!/usr/bin/make -f # -*- makefile -*- include /usr/share/dpkg/pkg-info.mk DEB_VERSION_WORDS = $(subst ., ,$(DEB_VERSION)) DEB_VERSION_MAJOR = $(word 1,$(DEB_VERSION_WORDS)) DEB_VERSION_MINOR = $(word 2,$(DEB_VERSION_WORDS)) %: dh $@ override_dh_gencontrol: dh_gencontrol -- \ -V'plasma-version:major=$(DEB_VERSION_MAJOR)'\ -V'plasma-version:minor=$(DEB_VERSION_MINOR)'