see if this works
[fw/altos] / debian / rules
index b81278a156de9ca1c288feb5caf604580d831496..bf9827e1ff8b73ae217afda8402e393500c9924f 100755 (executable)
@@ -2,6 +2,7 @@
 # -*- makefile -*-
 
 export DH_VERBOSE=1
+PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p'| sed 's/+dfsg//')
 
 configure: configure-stamp
 configure-stamp:
@@ -13,7 +14,7 @@ build: build-stamp
 
 build-stamp: configure-stamp  
        dh_testdir
-       $(MAKE)
+       $(MAKE) VERSION=$(PKG_VERSION)
        touch $@
 
 clean: