]> git.proxmox.com Git - dab.git/blobdiff - Makefile
handle .xz compressed Packages file from Bullseye
[dab.git] / Makefile
index 723f566eb000f589d29ccc201b7139fe6879a0c5..78faf98222993d8d5e2152cf38afaa5931587994 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
-VERSION=3.0
+include /usr/share/dpkg/pkg-info.mk
+
 PACKAGE=dab
-PKGREL=12
 
-BUILDDIR ?= ${PACKAGE}-${VERSION}
+BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
 
 SCRIPTS=                                       \
        scripts/init.pl                         \
@@ -13,8 +13,8 @@ SCRIPTS=                                      \
 
 GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB=${PACKAGE}_${VERSION}-${PKGREL}_all.deb
-DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
+DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
+DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
 
 DESTDIR=
 PREFIX=/usr
@@ -75,19 +75,17 @@ dab.1.pod: dab
 
 dab.1: dab.1.pod
        rm -f $@
-       pod2man -n $< -s 1 -r ${VERSION} <$< >$@.tmp
+       pod2man -n $< -s 1 -r ${DEB_VERSION_UPSTREAM} <$< >$@.tmp
        mv $@.tmp $@
 
 
 .PHONY: clean
 clean:
-       rm -rf ${BUILDDIR} *.deb *.dsc dab_*.tar.gz dab.1 dab.1.pod dab.pdf *.tmp *.changes *.buildinfo *~
+       rm -rf ${PACKAGE}-*/ *.deb *.dsc dab_*.tar.gz dab.1 dab.1.pod dab.pdf *.tmp *.changes *.buildinfo *~
 
 .PHONY: distclean
 distclean: clean
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch
-
-
+       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster