build: Allow generating dependencies as a side-effect of assembling