5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2025-01-10 01:17:51 +03:00
pve-guest-common/Makefile
Fabian Grünbichler e115c4af33 initial packaging
2017-01-25 10:05:29 +01:00

38 lines
656 B
Makefile

PACKAGE=libpve-guest-common-perl
PKGVER=1.0
PKGREL=1
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
DESTDIR=
PERL5DIR=${DESTDIR}/usr/share/perl5
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
all:
.PHONY: 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/AbstractConfig.pm ${PERL5DIR}/PVE/
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
distclean: clean
clean:
rm -rf ./build *.deb *.changes
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}