Functions
Return all environment variables for the given unit-dependencies
if artifacts are present.
Given a dependency with an artifact
artifact_dep
and a set of available targets
of its package, find a target for each kind of artifacts that are to be built.