diff --git a/Makefile b/Makefile index 9011ff5..5629b31 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,12 @@ +include /usr/share/dpkg/pkg-info.mk + PACKAGE=pve-jslint -VERSION=1.0 -PACKAGERELEASE=5 -PKGREL=${VERSION}-${PACKAGERELEASE} - -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}