5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
9 PERL5DIR=${DESTDIR}/usr/share/perl5
10 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
18 make DESTDIR=./build install
19 cd build; dpkg-buildpackage -rfakeroot -b -us -uc
22 install: pve-api-definition.js
23 install -D -m 0644 PVE/APIClient/Helpers.pm ${PERL5DIR}/PVE/APIClient/Helpers.pm
24 install -D -m 0644 pve-api-definition.js ${DESTDIR}/usr/share/${PACKAGE}/pve-api-definition.js
25 install -D -m 0755 pveclient ${DESTDIR}/usr/bin/pveclient
27 pve-api-definition.js:
28 ./extractapi.pl > pve-api-definition.js.tmp
29 mv pve-api-definition.js.tmp pve-api-definition.js
33 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pmg,pve --dist stretch
38 rm -rf ./build *.deb *.changes *.buildinfo
39 find . -name '*~' -exec rm {} ';'