dpkg-parsechangelog | grep Ver | perl -ne '/\s(.*?)\-/ ; print $1'

but it's better to use:

version := $(shell dpkg-parsechangelog | grep ^Version: \

(this latter is for debian/rules)