TRANSFER=scp REXEC=ssh SSHFLAGS=-C # Compress data REMOTE=jdaily@remote:~/source-directory FILES=debug.ht messages.ht client.ct daemon.ct queue.ct queue.ht %.ht : %.h $(TRANSFER) $(SSHFLAGS) $< $(REMOTE) touch $@ %.ct : %.c $(TRANSFER) $(SSHFLAGS) $< $(REMOTE) touch $@ all-done: $(FILES) $(REXEC) $(SSHFLAGS) remote \ "cd source-directory && make" touch all-done