X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=7469272eac389ea2012dbc92db9b57c1aa51940a;hp=0021ab45e523b25cc5d898e375afdfaecb3a5bf3;hb=b1d7951f61a07529ddc6d24aa63ffe9185c53d98;hpb=a13c6f08a36cd499fe9eb5a2aa7333ef5ff9bb92 diff --git a/Makefile b/Makefile index 0021ab4..7469272 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -RELEASE=2.3 +RELEASE=4.0 -VERSION=1.0 -PKGREL=47 +VERSION=4.0 +PKGREL=8 PACKAGE=libpve-common-perl @@ -13,6 +13,8 @@ MAN1DIR=${MANDIR}/man1/ PERLDIR=${PREFIX}/share/perl5 ARCH=all +GITVERSION:=$(shell cat .git/refs/heads/master) + DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb all: ${DEB} @@ -25,8 +27,9 @@ dinstall: deb .PHONY: deb deb ${DEB}: rm -rf build - rsync -a data/ 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}