<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def call_sphinx(out_type, build_dir = "build"):
 """ Call the ``sphinx-build`` for the given output type and the ``make`` when the target has this possibility. Parameters out_type : A builder name for ``sphinx-build``. See the full list at `<http://sphinx-doc.org/invocation.html>`_. build_dir : Directory for storing the output. Defaults to "build". """

  sphinx_string = sphinx_template.format(build_dir=build_dir,
                                         out_type=out_type)
  if sphinx.main(shlex.split(sphinx_string)) != 0:
    raise RuntimeError("Something went wrong while building '{0}'"
                       .format(out_type))
  if out_type in make_target:
    make_string = make_template.format(build_dir=build_dir,
                                       out_type=out_type,
                                       make_param=make_target[out_type])
    call(shlex.split(make_string))