]> git.proxmox.com Git - lxcfs.git/commitdiff
update Makefile to get version info from changelog
authorOguz Bektas <o.bektas@proxmox.com>
Tue, 29 Jan 2019 10:39:42 +0000 (11:39 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 6 Feb 2019 12:48:58 +0000 (13:48 +0100)
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
Makefile

index d84e4524ae9a6fcea6b7031f1bb65dd20a1813d7..cd91f8106d4ad4aa517579f601f050ae82bb2aa5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE=lxcfs
-PKGVER=3.0.2
-DEBREL=1
+PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
+PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
 
 SRCDIR=${PACKAGE}
 BUILDSRC := $(SRCDIR).tmp
@@ -8,8 +8,8 @@ BUILDSRC := $(SRCDIR).tmp
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB1=${PACKAGE}_${PKGVER}-${DEBREL}_${ARCH}.deb
-DEB2=${PACKAGE}-dbgsym_${PKGVER}-${DEBREL}_${ARCH}.deb
+DEB1=${PACKAGE}_${PKGVER}-${PKGREL}_${ARCH}.deb
+DEB2=${PACKAGE}-dbgsym_${PKGVER}-${PKGREL}_${ARCH}.deb
 DEBS=$(DEB1) $(DEB2)
 
 all: ${DEB}