Your code will always add a reference to every other generated file, regardless of whether or not they're actually used.