]> git.proxmox.com Git - pve-common.git/commitdiff
build: inline $GITVERSION
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 17 Oct 2018 12:36:04 +0000 (14:36 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 29 Oct 2018 13:10:50 +0000 (14:10 +0100)
since the top-level Makefile is called during build now, where we might
no be in a git working tree.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Acked-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index dec07908024e7190bcc5f9158a8b7dbb2af4a23e..412133d7dbccb16c4070ae63a8ac26e87f18ee07 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,6 @@ PKGREL=40
 PACKAGE=libpve-common-perl
 
 ARCH=all
-GITVERSION:=$(shell git rev-parse HEAD)
 
 BUILDDIR ?= build
 
@@ -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}