changeset 544:075644e534a3

Take ${B} build dir in account when build Debian package.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 21 Nov 2012 00:23:22 +0200
parents 2d7a25fc501f
children 7f0ff7fcdf64
files printarg/Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/printarg/Makefile	Wed Nov 21 00:22:20 2012 +0200
+++ b/printarg/Makefile	Wed Nov 21 00:23:22 2012 +0200
@@ -177,8 +177,9 @@
 
 .PHONY: dist-debian
 dist-debian: dist
-	cp ${B}${PKG}.tar.gz ../${PKG_NAME}_${PKG_VERSION}.orig.tar.gz
-	debuild -us -uc
+	cp ${B}${PKG}.tar.gz ${B}${PKG_NAME}_${PKG_VERSION}.orig.tar.gz
+	tar zxf ${B}${PKG_NAME}_${PKG_VERSION}.orig.tar.gz -C ${B}
+	cd ${B}${PKG}; cp -r ${S}debian ${B}${PKG}; debuild -us -uc
 
 .PHONY: dist-debian-check
 dist-debian-check: dist-debian