2 PACKAGE
=libpve-storage-perl
9 MANDIR
=${PREFIX}/share
/man
10 DOCDIR
=${PREFIX}/share
/doc
/${PACKAGE}
11 MAN1DIR
=${MANDIR}/man1
/
12 BASHCOMPLDIR
=${PREFIX}/share
/bash-completion
/completions
/
13 ZSHCOMPLDIR
=${PREFIX}/share
/zsh
/vendor-completions
/
15 export PERLDIR
=${PREFIX}/share
/perl5
17 export SOURCE_DATE_EPOCH ?
= $(shell dpkg-parsechangelog
-STimestamp
)
20 GITVERSION
:=$(shell git rev-parse HEAD
)
22 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
24 # this require package pve-doc-generator
26 include /usr
/share
/pve-doc-generator
/pve-doc-generator.mk
34 pvesm.bash-completion
:
35 perl
-I.
-T
-e
"use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_bash_completions();" >$@.tmp
39 perl
-I.
-T
-e
"use PVE::CLI::pvesm; PVE::CLI::pvesm->generate_zsh_completions();" >$@.tmp
43 install: PVE pvesm
.1 pvesm.bash-completion pvesm.zsh-completion
44 install -d
${DESTDIR}${SBINDIR}
45 install -m
0755 pvesm
${DESTDIR}${SBINDIR}
47 install -d
${DESTDIR}/usr
/share
/man
/man1
48 install -m
0644 pvesm
.1 ${DESTDIR}/usr
/share
/man
/man1
/
49 gzip
-9 -n
${DESTDIR}/usr
/share
/man
/man1
/pvesm
.1
50 install -m
0644 -D pvesm.bash-completion
${DESTDIR}${BASHCOMPLDIR}/pvesm
51 install -m
0644 -D pvesm.zsh-completion
${DESTDIR}${ZSHCOMPLDIR}/_pvesm
58 echo
"git clone git://git.proxmox.com/git/pve-storage.git\\ngit checkout ${GITVERSION}" >build
/debian
/SOURCE
59 cd build
; dpkg-buildpackage
-b
-us
-uc
64 perl
-I.
-T
-e
"use PVE::CLI::pvesm; PVE::CLI::pvesm->verify_api();"
70 rm -rf build
*.deb
*.buildinfo
*.changes
71 find .
-name
'*~' -exec
rm {} ';'
79 tar cf
- ${DEB} | ssh repoman@repo.proxmox.com
-- upload
--product pve
--dist stretch