blob: d4bb2cbb9eddb1bb1b4f366623044af8e4830919 [file] [log] [blame]
Davide Pesavento04af5f22020-06-21 22:02:47 -04001# Minimal makefile for Sphinx documentation
Alexander Afanasyev772662a2013-11-21 23:22:40 +00002#
3
Davide Pesavento04af5f22020-06-21 22:02:47 -04004# You can set these variables from the command line, and also
5# from the environment for the first two.
6SPHINXOPTS ?=
7SPHINXBUILD ?= sphinx-build
8SOURCEDIR = .
Alexander Afanasyev772662a2013-11-21 23:22:40 +00009BUILDDIR = _build
10
Davide Pesavento04af5f22020-06-21 22:02:47 -040011# Put it first so that "make" without argument is like "make help".
Alexander Afanasyev772662a2013-11-21 23:22:40 +000012help:
Davide Pesavento04af5f22020-06-21 22:02:47 -040013 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Alexander Afanasyev772662a2013-11-21 23:22:40 +000014
Davide Pesavento04af5f22020-06-21 22:02:47 -040015.PHONY: help Makefile
Alexander Afanasyev772662a2013-11-21 23:22:40 +000016
Davide Pesavento04af5f22020-06-21 22:02:47 -040017# Catch-all target: route all unknown targets to Sphinx using the new
18# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19%: Makefile
20 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)