1 # Makefile for Sphinx documentation
3 # FIXME: This hack is only in place to allow the libcxx.llvm.org/docs builder
4 # to work with libcxx. This should be removed when that builder supports
7 # You can set these variables from the command line.
9 SPHINXBUILD = sphinx-build
14 PAPEROPT_a4 = -D latex_paper_size=a4
15 PAPEROPT_letter = -D latex_paper_size=letter
16 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
17 # the i18n builder cannot share the environment and doctrees with the others
18 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
20 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext default
25 @echo "Please use \`make <target>' where <target> is one of"
26 @echo " html to make standalone HTML files"
32 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
34 @# FIXME: Remove this `cp` once HTML->Sphinx transition is completed.
35 @# Kind of a hack, but HTML-formatted docs are on the way out anyway.
36 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."