5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-31 05:47:19 +03:00

buildsys: make build-dir generation atomic

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-24 19:24:59 +02:00
parent 576ae6e7d5
commit 1b91242ae9

View File

@ -17,9 +17,11 @@ SIMDSC=$(SIMPACKAGE)_$(DEB_VERSION).dsc
all: deb
$(BUILDDIR):
rm -rf $(BUILDDIR)
rsync -a src/ debian $(BUILDDIR)
echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
rm -rf $@ $@.tmp
cp -a src/ $@.tmp
cp -a debian $@.tmp/
echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
mv $@.tmp $@
.PHONY: dinstall
dinstall: $(DEB) $(SIMDEB)