Change-Id: Ib3b3527e825d04e6b66d74d72011fafdabe9183e
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
export DH_VERBOSE=1
V=1
+default: rule/debuild
+
%:
- dh $@
+ dh $@
+
+
+version?=$(shell [ -r debian/changelog ] && dpkg-parsechangelog | grep "Version:" | sed -e "s/Version: \(.*\)-.*/\1/g" )
+tarball?=${CURDIR}/../iotivity_${version}.orig.tar.xz
+
+rule/debuild: ${tarball}
+ debuild
+${tarball}: ${CURDIR}
+ cd .. && tar cvfJ \
+ $@ \
+ --exclude 'debian' --exclude-vcs \
+ ${<F}/