5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-24 01:33:48 +03:00
pve-common/Makefile
2017-01-27 10:57:59 +01:00

50 lines
895 B
Makefile

VERSION=4.0
PKGREL=90
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 cat .git/refs/heads/master)
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 -rfakeroot -b -us -uc
lintian ${DEB}
.PHONY: clean
clean:
rm -rf *~ *.deb *.changes build ${PACKAGE}-*.tar.gz
.PHONY: distclean
distclean: clean
.PHONY: check
check:
$(MAKE) -C test check
.PHONY: upload
upload: ${DEB}
tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload