Make refs target dependent on other entuty files.