]> git.proxmox.com Git - pve-guest-common.git/blob - Makefile
add packaging for VZDump base plugin
[pve-guest-common.git] / Makefile
1 PACKAGE=libpve-guest-common-perl
2 PKGVER=1.0
3 PKGREL=1
4
5 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
6
7 DESTDIR=
8
9 PERL5DIR=${DESTDIR}/usr/share/perl5
10 DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
11
12 all:
13
14 .PHONY: deb
15 deb ${DEB}:
16 rm -rf build
17 rsync -a * build
18 cd build; dpkg-buildpackage -b -us -uc
19 lintian ${DEB}
20
21 install: PVE
22 install -d ${PERL5DIR}/PVE
23 install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
24 install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
25 install -d ${PERL5DIR}/PVE/VZDump
26 install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
27
28 .PHONY: upload
29 upload: ${DEB}
30 tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
31
32 distclean: clean
33
34 clean:
35 rm -rf ./build *.deb *.changes
36
37 .PHONY: dinstall
38 dinstall: ${DEB}
39 dpkg -i ${DEB}