Austin Schuh | 9049e20 | 2022-02-20 17:34:16 -0800 | [diff] [blame] | 1 | # Minimal makefile for Sphinx documentation |
| 2 | # |
| 3 | |
| 4 | # You can set these variables from the command line. |
| 5 | SPHINXOPTS = |
| 6 | SPHINXBUILD = sphinx-build |
| 7 | SPHINXPROJ = osqp |
| 8 | SOURCEDIR = . |
| 9 | BUILDDIR = _build |
| 10 | HTMLCOPYDIR = _build/html |
| 11 | |
| 12 | # Put it first so that "make" without argument is like "make help". |
| 13 | help: |
| 14 | @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 15 | |
| 16 | .PHONY: help Makefile |
| 17 | |
| 18 | # Catch-all target: route all unknown targets to Sphinx using the new |
| 19 | # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
| 20 | %: Makefile |
| 21 | @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
| 22 | ifneq ("$(HTMLCOPYDIR)", "$(BUILDDIR)/html") |
| 23 | cp -rT $(BUILDDIR)/html $(HTMLCOPYDIR) |
| 24 | endif |