xref: /petsc/src/binding/petsc4py/docs/source/Makefile (revision 5808f68492579297331054bd8ff190489c3b8c20)
1*5808f684SSatish Balay# Minimal makefile for Sphinx documentation
2*5808f684SSatish Balay#
3*5808f684SSatish Balay
4*5808f684SSatish Balay# You can set these variables from the command line.
5*5808f684SSatish BalaySPHINXOPTS    =
6*5808f684SSatish BalaySPHINXBUILD   = python -msphinx
7*5808f684SSatish BalaySPHINXPROJ    = petsc4py
8*5808f684SSatish BalaySOURCEDIR     = .
9*5808f684SSatish BalayBUILDDIR      = _build
10*5808f684SSatish Balay
11*5808f684SSatish Balay# Put it first so that "make" without argument is like "make help".
12*5808f684SSatish Balayhelp:
13*5808f684SSatish Balay	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14*5808f684SSatish Balay
15*5808f684SSatish Balay.PHONY: help Makefile
16*5808f684SSatish Balay
17*5808f684SSatish Balay# Catch-all target: route all unknown targets to Sphinx using the new
18*5808f684SSatish Balay# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
19*5808f684SSatish Balay%: Makefile
20*5808f684SSatish Balay	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21