# Shorthand rule for copying the standard input to the result file define rsync-copy cat > $@.raw; rsync --remove-source-files --checksum $@.raw $@ endef