Switch to unified view

a b/ForgeImporters/docs/Makefile
1
#       Licensed to the Apache Software Foundation (ASF) under one
2
#       or more contributor license agreements.  See the NOTICE file
3
#       distributed with this work for additional information
4
#       regarding copyright ownership.  The ASF licenses this file
5
#       to you under the Apache License, Version 2.0 (the
6
#       "License"); you may not use this file except in compliance
7
#       with the License.  You may obtain a copy of the License at
8
#
9
#         http://www.apache.org/licenses/LICENSE-2.0
10
#
11
#       Unless required by applicable law or agreed to in writing,
12
#       software distributed under the License is distributed on an
13
#       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
#       KIND, either express or implied.  See the License for the
15
#       specific language governing permissions and limitations
16
#       under the License.
17
18
# Makefile for Sphinx documentation
19
20
# You can set these variables from the command line.
21
SPHINXOPTS    =
22
SPHINXBUILD   = sphinx-build
23
PAPER         =
24
BUILDDIR      = _build
25
26
# Internal variables.
27
PAPEROPT_a4     = -D latex_paper_size=a4
28
PAPEROPT_letter = -D latex_paper_size=letter
29
ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
30
31
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
32
33
help:
34
  @echo "Please use \`make <target>' where <target> is one of"
35
  @echo "  html      to make standalone HTML files"
36
  @echo "  dirhtml   to make HTML files named index.html in directories"
37
  @echo "  pickle    to make pickle files"
38
  @echo "  json      to make JSON files"
39
  @echo "  htmlhelp  to make HTML files and a HTML help project"
40
  @echo "  qthelp    to make HTML files and a qthelp project"
41
  @echo "  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
42
  @echo "  changes   to make an overview of all changed/added/deprecated items"
43
  @echo "  linkcheck to check all external links for integrity"
44
  @echo "  doctest   to run all doctests embedded in the documentation (if enabled)"
45
46
clean:
47
  -rm -rf $(BUILDDIR)/*
48
49
html:
50
  $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
51
  @echo
52
  @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
53
54
dirhtml:
55
  $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
56
  @echo
57
  @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
58
59
pickle:
60
  $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
61
  @echo
62
  @echo "Build finished; now you can process the pickle files."
63
64
json:
65
  $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
66
  @echo
67
  @echo "Build finished; now you can process the JSON files."
68
69
htmlhelp:
70
  $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
71
  @echo
72
  @echo "Build finished; now you can run HTML Help Workshop with the" \
73
        ".hhp project file in $(BUILDDIR)/htmlhelp."
74
75
qthelp:
76
  $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
77
  @echo
78
  @echo "Build finished; now you can run "qcollectiongenerator" with the" \
79
        ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
80
  @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/allura.qhcp"
81
  @echo "To view the help file:"
82
  @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/allura.qhc"
83
84
latex:
85
  $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
86
  @echo
87
  @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
88
  @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
89
        "run these through (pdf)latex."
90
91
changes:
92
  $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
93
  @echo
94
  @echo "The overview file is in $(BUILDDIR)/changes."
95
96
linkcheck:
97
  $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
98
  @echo
99
  @echo "Link check complete; look for any errors in the above output " \
100
        "or in $(BUILDDIR)/linkcheck/output.txt."
101
102
doctest:
103
  $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
104
  @echo "Testing of doctests in the sources finished, look at the " \
105
        "results in $(BUILDDIR)/doctest/output.txt."