mirror of
https://git.proxmox.com/git/pve-guest-common
synced 2025-08-05 17:02:06 +00:00
buildsys: make build-dir generation atomic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f26cc0b2d4
commit
9a75d60723
9
Makefile
9
Makefile
@ -10,10 +10,11 @@ BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
|
|||||||
all:
|
all:
|
||||||
|
|
||||||
$(BUILDDIR):
|
$(BUILDDIR):
|
||||||
rm -rf $(BUILDDIR)
|
rm -rf $@ $@.tmp
|
||||||
cp -a src $(BUILDDIR)
|
cp -a src $@.tmp
|
||||||
cp -a debian $(BUILDDIR)/
|
cp -a debian $@.tmp/
|
||||||
echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout $(GITVERSION)" > $@.tmp/debian/SOURCE
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEB)
|
deb: $(DEB)
|
||||||
|
Loading…
Reference in New Issue
Block a user