Replace references to source files with references to generated files.