From 1f11c55787117d06e7d98555e6e8dd5e6de30db4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 26 Jun 2023 09:22:30 +0200 Subject: [PATCH] buildsys: only get git revision if actually used Signed-off-by: Thomas Lamprecht --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d54c702..292ef82 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,6 @@ include /usr/share/dpkg/pkg-info.mk PACKAGE=proxmox-mailgateway -GITVERSION:=$(shell git rev-parse HEAD) - BUILDDIR=$(PACKAGE)-$(DEB_VERSION) DSC=$(PACKAGE)_$(DEB_VERSION).dsc @@ -22,7 +20,7 @@ $(BUILDDIR): debian rm -rf $@ $@.tmp mkdir -p $@.tmp/debian cp -a debian/ $@.tmp/ - echo "git clone git://git.proxmox.com/git/proxmox-mailgateway.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE + echo "git clone git://git.proxmox.com/git/proxmox-mailgateway.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE mv $@.tmp $@ $(DEB): $(BUILDDIR)