Add a warning when a module does not produce a target.