5
0
mirror of git://git.proxmox.com/git/pve-zsync.git synced 2025-01-18 14:03:35 +03:00

buildsys: create build directory atomically

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2023-05-24 13:44:06 +02:00
parent 54af66c2ec
commit 08c1544857

View File

@ -34,9 +34,10 @@ install: pve-zsync.8
install -d $(DOCDIR) install -d $(DOCDIR)
$(BUILDDIR): $(BUILDDIR):
rm -rf $(BUILDDIR) rm -rf $@.tmp $@
rsync -a * $(BUILDDIR) rsync -a * $@.tmp
echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE echo "git clone git://git.proxmox.com/git/dab.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
mv $@.tmp $@
.PHONY: deb .PHONY: deb
deb: $(DEB) deb: $(DEB)