Test on both makefiles and ninja.

Remove CheckTargetSourcesComment as no comments could ever be generated realistically.