5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-25 05:33:49 +03:00
pve-common/Makefile
Wolfgang Bumiller ca2835a1d4 bump version to 5.0-26
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
2018-01-18 09:31:02 +01:00

50 lines
924 B
Makefile

VERSION=5.0
PKGREL=26
PACKAGE=libpve-common-perl
PREFIX=/usr
BINDIR=${PREFIX}/bin
MANDIR=${PREFIX}/share/man
DOCDIR=${PREFIX}/share/doc
MAN1DIR=${MANDIR}/man1/
PERLDIR=${PREFIX}/share/perl5
ARCH=all
GITVERSION:=$(shell git rev-parse HEAD)
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
all: ${DEB}
.PHONY: dinstall
dinstall: deb
dpkg -i ${DEB}
.PHONY: deb
deb ${DEB}:
$(MAKE) -C test check
rm -rf build
rsync -a src/ build
rsync -a debian/ build/debian
echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
cd build; dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: clean
clean:
rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz *.buildinfo
.PHONY: distclean
distclean: clean
.PHONY: check
check:
$(MAKE) -C test check
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh repoman@repo.proxmox.com -- upload --product pve,pmg --dist stretch