]> git.proxmox.com Git - pve-storage.git/blobdiff - Makefile
cifs: improve warning for password but no username set
[pve-storage.git] / Makefile
index a204941c7a038fa72936f58a26ba14f2e3246e2a..e035a4db533e560e4ca542ba56af09cafdadaea1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-VERSION=5.0
+include /usr/share/dpkg/pkg-info.mk
+
 PACKAGE=libpve-storage-perl
-PKGREL=10
 
 DESTDIR=
 PREFIX=/usr
@@ -10,15 +10,13 @@ MANDIR=${PREFIX}/share/man
 DOCDIR=${PREFIX}/share/doc/${PACKAGE}
 MAN1DIR=${MANDIR}/man1/
 BASHCOMPLDIR=${PREFIX}/share/bash-completion/completions/
+ZSHCOMPLDIR=${PREFIX}/share/zsh/vendor-completions/
 
 export PERLDIR=${PREFIX}/share/perl5
 
-export SOURCE_DATE_EPOCH ?= $(shell dpkg-parsechangelog -STimestamp)
-
-ARCH=all
-GITVERSION:=$(shell cat .git/refs/heads/master)
+GITVERSION:=$(shell git rev-parse HEAD)
 
-DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
+DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
 
 # this require package pve-doc-generator
 export NOVIEW=1
@@ -34,8 +32,12 @@ pvesm.bash-completion:
        perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
        mv $@.tmp $@
 
+pvesm.zsh-completion:
+       perl -I. -T -e "use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_zsh_completions();" >$@.tmp
+       mv $@.tmp $@
+
 .PHONY: install
-install: PVE pvesm.1 pvesm.bash-completion
+install: PVE pvesm.1 pvesm.bash-completion pvesm.zsh-completion
        install -d ${DESTDIR}${SBINDIR}
        install -m 0755 pvesm ${DESTDIR}${SBINDIR}
        make -C PVE install
@@ -43,6 +45,7 @@ install: PVE pvesm.1 pvesm.bash-completion
        install -m 0644 pvesm.1 ${DESTDIR}/usr/share/man/man1/
        gzip -9 -n ${DESTDIR}/usr/share/man/man1/pvesm.1
        install -m 0644 -D pvesm.bash-completion ${DESTDIR}${BASHCOMPLDIR}/pvesm
+       install -m 0644 -D pvesm.zsh-completion ${DESTDIR}${ZSHCOMPLDIR}/_pvesm
 
 .PHONY: deb
 deb: ${DEB}
@@ -70,5 +73,5 @@ distclean: clean
 
 .PHONY: upload
 upload: ${DEB}
-       tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
+       tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist buster