mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 22:53:08 +00:00
buildsys: create build directory atomically
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
4fa27f2d54
commit
ad19e46861
7
Makefile
7
Makefile
@ -81,9 +81,10 @@ install: $(PKGSOURCES)
|
|||||||
cd $(DESTDIR)/$(MAN5DIR); ln -s -f qm.conf.5.gz vm.conf.5.gz
|
cd $(DESTDIR)/$(MAN5DIR); ln -s -f qm.conf.5.gz vm.conf.5.gz
|
||||||
|
|
||||||
$(BUILDDIR):
|
$(BUILDDIR):
|
||||||
rm -rf $(BUILDDIR)
|
rm -rf $(BUILDDIR) $(BUILDDIR).tmp
|
||||||
rsync -a * $(BUILDDIR)
|
rsync -a * $(BUILDDIR).tmp
|
||||||
echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR).tmp/debian/SOURCE
|
||||||
|
mv $(BUILDDIR).tmp $(BUILDDIR)
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEBS)
|
deb: $(DEBS)
|
||||||
|
Loading…
Reference in New Issue
Block a user