first generate and execute *-local, then *-remote

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>