]> git.proxmox.com Git - pve-common.git/blobdiff - Makefile
CalendarEvent: add 'utc' flag to calendar specs
[pve-common.git] / Makefile
index dec07908024e7190bcc5f9158a8b7dbb2af4a23e..29775f3c2565c63a0da308a43282ae42b78a3057 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,8 @@ PKGREL=40
 PACKAGE=libpve-common-perl
 
 ARCH=all
-GITVERSION:=$(shell git rev-parse HEAD)
 
-BUILDDIR ?= build
+BUILDDIR ?= ${PACKAGE}-${VERSION}
 
 DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
 DSC=${PACKAGE}_${VERSION}-${PKGREL}.dsc
@@ -22,7 +21,7 @@ dinstall: deb
 ${BUILDDIR}: src debian
        rm -rf ${BUILDDIR}
        rsync -a * ${BUILDDIR}
-       echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
+       echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
 
 .PHONY: deb
 deb: ${DEB}