diff --git a/Makefile b/Makefile index b1e97e7..74e1edc 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,12 @@ update-bindings: .PHONY: $(BUILDSRC) $(BUILDSRC): - -rm -rf $(BUILDSRC) - cp -a $(OPKGNAME) $(BUILDSRC) - cp -a $(UPSTREAM)/xdgmime*.[ch] $(BUILDSRC)/ - perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$(BUILDSRC)/ppport.h");' - cp -a debian $(BUILDSRC) + -rm -rf $@ $@.tmp + cp -a $(OPKGNAME) $@.tmp + cp -a $(UPSTREAM)/xdgmime*.[ch] $@.tmp/ + perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$@.tmp/ppport.h");' + cp -a debian $@.tmp + mv $@.tmp $@ .PHONY: dsc dsc: