Allowing deps generation for multi-target.
Merge pull request #929 from dbabokin/deps

Allowing deps generation for multi-target.