]> git.proxmox.com Git - pve-container.git/blobdiff - Makefile
Fix #1924: add snapshot parameter
[pve-container.git] / Makefile
index 34e9397387f863e6eb95fb4b84ecf59355cd223f..87563eba37c35975ae81c305ad349d61b08e8db0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,12 @@
-VERSION=2.0
 PACKAGE=pve-container
-PKGREL=15
+PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
+PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
 
-GITVERSION:=$(git rev-parse HEAD)
+GITVERSION:=$(shell git rev-parse HEAD)
 
 ARCH:=all
 
-DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+DEB=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
 
 all: ${DEB}
 
@@ -22,7 +22,7 @@ ${DEB}:
        rsync -a src/ build
        rsync -a debian/ build/debian
        echo "git clone git://git.proxmox.com/git/pve-container\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
-       cd build; dpkg-buildpackage -rfakeroot -b -us -uc
+       cd build; dpkg-buildpackage -b -us -uc
        lintian ${DEB}
 
 .PHONY: clean