1*0d0705a1Slongjin# Minimal makefile for Sphinx documentation 2*0d0705a1Slongjin# 3*0d0705a1Slongjin 4*0d0705a1Slongjin# You can set these variables from the command line, and also 5*0d0705a1Slongjin# from the environment for the first two. 6*0d0705a1SlongjinSPHINXOPTS ?= 7*0d0705a1SlongjinSPHINXBUILD ?= sphinx-build 8*0d0705a1SlongjinSOURCEDIR = . 9*0d0705a1SlongjinBUILDDIR = _build 10*0d0705a1Slongjin 11*0d0705a1Slongjin# Put it first so that "make" without argument is like "make help". 12*0d0705a1Slongjinhelp: 13*0d0705a1Slongjin @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 14*0d0705a1Slongjin 15*0d0705a1Slongjin.PHONY: help Makefile 16*0d0705a1Slongjin 17*0d0705a1Slongjin# Catch-all target: route all unknown targets to Sphinx using the new 18*0d0705a1Slongjin# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 19*0d0705a1Slongjin%: Makefile 20*0d0705a1Slongjin @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21