`process_dep` should return something: return (target, link_path)?