5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-03-11 16:58:18 +03:00
pve-guest-common/Makefile
Dietmar Maurer 94d526d7e0 PVE::GuestHelpers::guest_migration_lock - new helper
I create a separate class for common guest helpers.
We can move more code into this class later.
2017-05-30 12:06:08 +02:00

43 lines
906 B
Makefile

PACKAGE=libpve-guest-common-perl
PKGVER=2.0
PKGREL=3
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
PERL5DIR=${DESTDIR}/usr/share/perl5
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
all:
.PHONY: deb
deb: ${DEB}
${DEB}:
rm -rf build
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
install: PVE
install -d ${PERL5DIR}/PVE
install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
install -d ${PERL5DIR}/PVE/VZDump
install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
distclean: clean
clean:
rm -rf ./build *.deb *.changes
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}