From c11de0173fa38c23fa25343f5d3cff99aa601368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 Oct 2018 14:36:04 +0200 Subject: [PATCH] build: inline $GITVERSION MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Acked-by: Thomas Lamprecht Acked-by: Wolfgang Bumiller --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dec0790..412133d 100644 --- 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} -- 2.39.2