]>
Commit | Line | Data |
---|---|---|
5a3b38c1 | 1 | PACKAGE=libpve-apiclient-perl |
bf0c1ca6 DM |
2 | PKGVER=2.0 |
3 | PKGREL=1 | |
5a3b38c1 DM |
4 | |
5 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb | |
6 | ||
7 | DESTDIR= | |
8 | ||
d12f292e DM |
9 | PERL5DIR=${DESTDIR}/usr/share/perl5 |
10 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
5a3b38c1 DM |
11 | |
12 | all: ${DEB} | |
13 | ||
14 | .PHONY: deb | |
15 | deb ${DEB}: | |
16 | rm -rf build | |
17 | rsync -a debian build | |
18 | make DESTDIR=./build install | |
19 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
20 | lintian ${DEB} | |
21 | ||
22 | install: | |
d12f292e DM |
23 | install -D -m 0644 PVE/APIClient/LWP.pm ${PERL5DIR}/PVE/APIClient/LWP.pm |
24 | install -d -m 755 ${DOCDIR}/examples | |
25 | install -m 0755 examples/example1.pl ${DOCDIR}/examples | |
8291fb9a | 26 | install -m 0755 examples/example2.pl ${DOCDIR}/examples |
21e68a8a | 27 | install -m 0755 examples/perftest1.pl ${DOCDIR}/examples |
5a3b38c1 DM |
28 | |
29 | .PHONY: upload | |
30 | upload: ${DEB} | |
bf0c1ca6 | 31 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com upload --product pmg,pve --dist stretch |
5a3b38c1 DM |
32 | |
33 | distclean: clean | |
34 | ||
35 | clean: | |
36 | rm -rf ./build *.deb *.changes | |
37 | find . -name '*~' -exec rm {} ';' | |
2834772d DM |
38 | |
39 | .PHONY: dinstall | |
40 | dinstall: ${DEB} | |
41 | dpkg -i ${DEB} |