build: specify full deps for api-doc targets

Fixes parallel make even more.