mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-25 09:09:08 +00:00
build: inline $GITVERSION
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>
This commit is contained in:
parent
fc0fe26612
commit
c11de0173f
3
Makefile
3
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}
|
||||
|
Loading…
Reference in New Issue
Block a user