The ninja generator tries to honor what SCons has told it about the files we produce, but Ninja itself does not offer support (https://github.com/ninja-build/ninja/issues/1184).
In such cases, it is probably safe to only emit the knowledge of target[0], since if that is out of date, then it is reasonable to assume that any additional compiler outputs will be generated as well.