From: Thomas Lamprecht Date: Thu, 23 May 2019 12:06:18 +0000 (+0200) Subject: buildsys: use dpkg-dev makefile helpers for pkg info X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=3e1b1e17f9207d43adda18632339ed393b4091ab;p=pve-jslint.git buildsys: use dpkg-dev makefile helpers for pkg info Signed-off-by: Thomas Lamprecht --- diff --git a/Makefile b/Makefile index 9011ff5..5629b31 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,12 @@ -PACKAGE=pve-jslint -VERSION=1.0 -PACKAGERELEASE=5 +include /usr/share/dpkg/pkg-info.mk -PKGREL=${VERSION}-${PACKAGERELEASE} +PACKAGE=pve-jslint -DEB=${PACKAGE}_${PKGREL}_all.deb -DSC=${PACKAGE}_${PKGREL}.dsc +DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb +DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc GITVERSION:=$(shell git rev-parse HEAD) -BUILDDIR ?= ${PACKAGE}-${VERSION} +BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} all: ${DEB}