]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - docs/Makefile.sphinx
Vendor import of libc++ trunk r290819:
[FreeBSD/FreeBSD.git] / docs / Makefile.sphinx
1 # Makefile for Sphinx documentation
2 #
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
5 # out-of-tree builds.
6
7 # You can set these variables from the command line.
8 SPHINXOPTS    = -n -W
9 SPHINXBUILD   = sphinx-build
10 PAPER         =
11 BUILDDIR      = _build
12
13 # Internal variables.
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) .
19
20 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext default
21
22 default: html
23
24 help:
25         @echo "Please use \`make <target>' where <target> is one of"
26         @echo "  html       to make standalone HTML files"
27
28 clean:
29         -rm -rf $(BUILDDIR)/*
30
31 html:
32         $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
33         @echo
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."
37