Create local and remote target definition files