]> git.proxmox.com Git - pve-apiclient.git/commitdiff
use dpkg's packaging variable makefile fragment
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 13:51:39 +0000 (15:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 19 May 2023 13:51:41 +0000 (15:51 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 0125f2ab78411a6a32ab4a74db3935927c62617c..3d224a980dc272d990596d9ca3f6d0b133397bd6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,12 @@
+include /usr/share/dpkg/default.mk
+
 PACKAGE=libpve-apiclient-perl
-PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
-PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2)
 
-BUILDSRC := $(PACKAGE)-$(PKGVER)
-DEB=$(PACKAGE)_$(PKGVER)-$(PKGREL)_all.deb
-DSC=$(PACKAGE)_$(PKGVER)-$(PKGREL).dsc
+BUILDSRC := $(PACKAGE)-$(DEB_VERSION)
+DEB=$(PACKAGE)_$(DEB_VERSION)_all.deb
+DSC=$(PACKAGE)_$(DEB_VERSION).dsc
 
 DESTDIR=
-
 PERL5DIR=$(DESTDIR)/usr/share/perl5
 DOCDIR=$(DESTDIR)/usr/share/doc/$(PACKAGE)