5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2024-12-22 13:34:00 +03:00
pve-guest-common/Makefile

43 lines
918 B
Makefile
Raw Normal View History

2017-01-25 11:13:35 +03:00
PACKAGE=libpve-guest-common-perl
2017-03-13 13:29:29 +03:00
PKGVER=2.0
2017-05-31 10:15:52 +03:00
PKGREL=4
2017-01-25 11:13:35 +03:00
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
PERL5DIR=${DESTDIR}/usr/share/perl5
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
all:
.PHONY: deb
2017-02-03 16:44:51 +03:00
deb: ${DEB}
${DEB}:
2017-01-25 11:13:35 +03:00
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/
2017-01-25 11:13:35 +03:00
install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
2017-01-25 11:50:15 +03:00
install -d ${PERL5DIR}/PVE/VZDump
install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
2017-01-25 11:13:35 +03:00
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch
2017-01-25 11:13:35 +03:00
distclean: clean
clean:
2017-05-31 08:49:56 +03:00
rm -rf ./build *.deb *.changes *.buildinfo
2017-01-25 11:13:35 +03:00
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}