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