Refactor the 'depend' target