blob: 61564e9a75c6249bf0df39f953cb682f4ca53d70 [file] [log] [blame]
Austin Schuh9049e202022-02-20 17:34:16 -08001# Minimal makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS =
6SPHINXBUILD = sphinx-build
7SPHINXPROJ = osqp
8SOURCEDIR = .
9BUILDDIR = _build
10HTMLCOPYDIR = _build/html
11
12# Put it first so that "make" without argument is like "make help".
13help:
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)
22ifneq ("$(HTMLCOPYDIR)", "$(BUILDDIR)/html")
23 cp -rT $(BUILDDIR)/html $(HTMLCOPYDIR)
24endif