mirror of
https://git.proxmox.com/git/libarchive-perl
synced 2025-10-04 19:08:47 +00:00
buildsys: make build-dir generation atomic
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
33881f0a92
commit
4224613758
11
Makefile
11
Makefile
@ -23,11 +23,12 @@ update-bindings:
|
|||||||
|
|
||||||
.PHONY: $(BUILDSRC)
|
.PHONY: $(BUILDSRC)
|
||||||
$(BUILDSRC):
|
$(BUILDSRC):
|
||||||
rm -rf $(BUILDSRC)
|
rm -rf $@ $@.tmp
|
||||||
cp -a $(PPSRC)/ $(BUILDSRC)
|
cp -a $(PPSRC)/ $@.tmp
|
||||||
cp -a debian $(BUILDSRC)
|
cp -a debian $@.tmp
|
||||||
perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$(BUILDSRC)/ppport.h");'
|
perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$@.tmp/ppport.h");'
|
||||||
echo "git clone git://git.proxmox.com/git/libarchive-perl\\ngit checkout $(shell git rev-parse HEAD)" >$(BUILDSRC)/debian/SOURCE
|
echo "git clone git://git.proxmox.com/git/libarchive-perl\\ngit checkout $(shell git rev-parse HEAD)" >$@.tmp/debian/SOURCE
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
.PHONY: dsc
|
.PHONY: dsc
|
||||||
dsc:
|
dsc:
|
||||||
|
Loading…
Reference in New Issue
Block a user