X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=Makefile;h=ff3ae9f240772a670b2d9d26d3356f45c46a4d67;hp=feb0d19f829243832a7f26eff9c456a5c5174a4f;hb=3432ae0c5e45e181491a8bf90231c3a398086ee2;hpb=d405237d0c2be6f12f439b14e9bde8bd8cbc66d1 diff --git a/Makefile b/Makefile index feb0d19..ff3ae9f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -RELEASE=2.0 +RELEASE=4.0 -VERSION=1.0 -PKGREL=5 +VERSION=4.0 +PKGREL=1 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}