blob: 743ebfe48f14c776435a8acecdcc61acd54e8708 [file] [log] [blame]
Eric Fiselier8150bbf2015-09-05 05:12:04 +00001# Makefile for Sphinx documentation
2#
3
4# You can set these variables from the command line.
5SPHINXOPTS =
6SPHINXBUILD = sphinx-build
7PAPER =
8BUILDDIR = _build
9
10# Internal variables.
11PAPEROPT_a4 = -D latex_paper_size=a4
12PAPEROPT_letter = -D latex_paper_size=letter
13ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
14# the i18n builder cannot share the environment and doctrees with the others
15I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
16
17.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext default
18
19default: html
20
21help:
22 @echo "Please use \`make <target>' where <target> is one of"
23 @echo " html to make standalone HTML files"
24
25clean:
26 -rm -rf $(BUILDDIR)/*
27
28html:
29 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
30 @echo
31 @# FIXME: Remove this `cp` once HTML->Sphinx transition is completed.
32 @# Kind of a hack, but HTML-formatted docs are on the way out anyway.
33 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
34