diff --git a/Makefile b/Makefile index c7c0eac..5e374af 100644 --- a/Makefile +++ b/Makefile @@ -23,11 +23,12 @@ update-bindings: .PHONY: $(BUILDSRC) $(BUILDSRC): - rm -rf $(BUILDSRC) - cp -a $(PPSRC)/ $(BUILDSRC) - cp -a debian $(BUILDSRC) - perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$(BUILDSRC)/ppport.h");' - echo "git clone git://git.proxmox.com/git/libarchive-perl\\ngit checkout $(shell git rev-parse HEAD)" >$(BUILDSRC)/debian/SOURCE + rm -rf $@ $@.tmp + cp -a $(PPSRC)/ $@.tmp + cp -a debian $@.tmp + 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)" >$@.tmp/debian/SOURCE + mv $@.tmp $@ .PHONY: dsc dsc: