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:
parent
54af66c2ec
commit
08c1544857
7
Makefile
7
Makefile
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user