Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
.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: