]> git.proxmox.com Git - pmg-docs.git/commitdiff
buildsys: only get git revision if actually used
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Jun 2023 10:34:06 +0000 (12:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Jun 2023 11:37:01 +0000 (13:37 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 665c6675a0c718e25324cc5ed1fe8f40b553ec8b..443138e1df94b10096c69f181eeb857bc8771df7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,6 @@ DSC=$(DEB_SOURCE)_$(DEB_VERSION).dsc
 GEN_PACKAGE=pmg-doc-generator
 DOC_PACKAGE=pmg-docs
 
-GITVERSION:=$(shell git rev-parse HEAD)
-
 GEN_DEB=$(GEN_PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 DOC_DEB=$(DOC_PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_all.deb
 
@@ -147,7 +145,7 @@ api-viewer/apidoc.js: $(API_VIEWER_FILES)
 $(BUILDDIR):
        rm -rf $@ $@.tmp
        rsync -a * $@.tmp
-       echo "git clone git://git.proxmox.com/git/pmg-docs.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
+       echo "git clone git://git.proxmox.com/git/pmg-docs.git\\ngit checkout $(shell git rev-parse HEAD)" > $@.tmp/debian/SOURCE
        mv $@.tmp $@
 
 .PHONY: dinstall