Hi Emil.
The lowercase "-c" is fine, but the problem is that the usage of "-M"
is brittle.
See
https://www.sphinx-doc.org/en/master/man/sphinx-build.html#make-mode,
which mentions:
"""
Sphinx only recognizes the -M option if it is used first, along with
the source and output directories, before any other options are
passed.
"""
See also
https://github.com/sphinx-doc/sphinx/issues/6603.
So if you move your "-c" argument after "$(BUILDDIR)", it should work.
I think the "-M" option is very confusing (which is why I still prefer
not using it and selecting the builder with "-b"), and obviously the
error message is not at all helpful, and I hope this will be improved
in the future.
Also, it is still not even mentioned in the "--help" output.
There have been a plethora of issues and PRs about this in the past,
this is a short selection:
https://github.com/sphinx-doc/sphinx/issues/3196
https://github.com/sphinx-doc/sphinx/pull/4320
https://github.com/sphinx-doc/sphinx/issues/5618
https://github.com/sphinx-doc/sphinx/pull/6938
https://github.com/sphinx-doc/sphinx/pull/6939
https://github.com/sphinx-doc/sphinx/issues/11656
cheers,
Matthias
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sphinx-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/3cafe9ec-c2ad-4413-a46b-db90b6532b56n%40googlegroups.com.