Merge targets into jobs