# Makefile for Sphinx documentation # dir := doc # You can set these variables from the command line. SPHINXOPTS := -q -c $(dir) SPHINXBUILD = sphinx-build BUILDDIR := $(dir)/_build # Internal variables. ALLSPHINXOPTS := -d $(BUILDDIR)/doctrees $(SPHINXOPTS) $(dir) .PHONY: help clean html man texinfo info html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html man: $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man texinfo: $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo info: texinfo make -C $(BUILDDIR)/texinfo info CLEAN := $(CLEAN) $(dir)/_build