]>
Commit | Line | Data |
---|---|---|
5a3b38c1 DM |
1 | PACKAGE=libpve-apiclient-perl |
2 | PKGVER=1.0 | |
3 | PKGREL=1 | |
4 | ||
5 | DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb | |
6 | ||
7 | DESTDIR= | |
8 | ||
9 | PERL5DIR=/usr/share/perl5 | |
10 | ||
11 | all: ${DEB} | |
12 | ||
13 | .PHONY: deb | |
14 | deb ${DEB}: | |
15 | rm -rf build | |
16 | rsync -a debian build | |
17 | make DESTDIR=./build install | |
18 | cd build; dpkg-buildpackage -rfakeroot -b -us -uc | |
19 | lintian ${DEB} | |
20 | ||
21 | install: | |
22 | install -D -m 0644 PVE/APIClient/LWP.pm ${DESTDIR}${PERL5DIR}/PVE/APIClient/LWP.pm | |
23 | ||
24 | .PHONY: upload | |
25 | upload: ${DEB} | |
26 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload | |
27 | ||
28 | distclean: clean | |
29 | ||
30 | clean: | |
31 | rm -rf ./build *.deb *.changes | |
32 | find . -name '*~' -exec rm {} ';' |