15808f684SSatish Balay# Minimal makefile for Sphinx documentation 25808f684SSatish Balay# 35808f684SSatish Balay 4*55a74a43SLisandro Dalcin# You can set these variables from the command line, and also 5*55a74a43SLisandro Dalcin# from the environment for the first two. 6*55a74a43SLisandro DalcinSPHINXOPTS ?= 7*55a74a43SLisandro DalcinSPHINXBUILD ?= sphinx-build 85808f684SSatish BalaySOURCEDIR = . 95808f684SSatish BalayBUILDDIR = _build 105808f684SSatish Balay 115808f684SSatish Balay# Put it first so that "make" without argument is like "make help". 125808f684SSatish Balayhelp: 135808f684SSatish Balay @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 145808f684SSatish Balay 155808f684SSatish Balay.PHONY: help Makefile 165808f684SSatish Balay 175808f684SSatish Balay# Catch-all target: route all unknown targets to Sphinx using the new 185808f684SSatish Balay# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 195808f684SSatish Balay%: Makefile 205808f684SSatish Balay @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21