split out install into install-deps and install

This way e.g. diagrams-doc can just use the install-deps part.