10d0705a1Slongjin# Minimal makefile for Sphinx documentation 20d0705a1Slongjin# 30d0705a1Slongjin 40d0705a1Slongjin# You can set these variables from the command line, and also 50d0705a1Slongjin# from the environment for the first two. 60d0705a1SlongjinSPHINXOPTS ?= 70d0705a1SlongjinSPHINXBUILD ?= sphinx-build 80d0705a1SlongjinSOURCEDIR = . 90d0705a1SlongjinBUILDDIR = _build 100d0705a1Slongjin 110d0705a1Slongjin# Put it first so that "make" without argument is like "make help". 120d0705a1Slongjinhelp: 130d0705a1Slongjin @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 140d0705a1Slongjin 150d0705a1Slongjin.PHONY: help Makefile 160d0705a1Slongjin 170d0705a1Slongjin# Catch-all target: route all unknown targets to Sphinx using the new 180d0705a1Slongjin# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). 190d0705a1Slongjin%: Makefile 200d0705a1Slongjin @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) 21*c635d8a9SLoGin 22*c635d8a9SLoGin.PHONY: 23*c635d8a9SLoGinhtml-multiversion: 24*c635d8a9SLoGin rm -rf ./$(BUILDDIR) && sphinx-multiversion "$(SOURCEDIR)" ./$(BUILDDIR)/html && cp -rf ./$(BUILDDIR)/html/master/* ./$(BUILDDIR)/html/ 25