Makefiles: pass the target name to `cmake -E cmake_depends`

When a shortened directory is used, the name of the target is not
accessible just by the path. Pass it explicitly.
5 files changed