annotate gcc/jit/docs/Makefile @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Makefile for Sphinx documentation
kono
parents:
diff changeset
2 #
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 # You can set these variables from the command line.
kono
parents:
diff changeset
5 SPHINXOPTS =
kono
parents:
diff changeset
6 SPHINXBUILD = sphinx-build
kono
parents:
diff changeset
7 PAPER =
kono
parents:
diff changeset
8 BUILDDIR = _build
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 # Internal variables.
kono
parents:
diff changeset
11 PAPEROPT_a4 = -D latex_paper_size=a4
kono
parents:
diff changeset
12 PAPEROPT_letter = -D latex_paper_size=letter
kono
parents:
diff changeset
13 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
kono
parents:
diff changeset
14 # the i18n builder cannot share the environment and doctrees with the others
kono
parents:
diff changeset
15 I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 help:
kono
parents:
diff changeset
20 @echo "Please use \`make <target>' where <target> is one of"
kono
parents:
diff changeset
21 @echo " html to make standalone HTML files"
kono
parents:
diff changeset
22 @echo " dirhtml to make HTML files named index.html in directories"
kono
parents:
diff changeset
23 @echo " singlehtml to make a single large HTML file"
kono
parents:
diff changeset
24 @echo " pickle to make pickle files"
kono
parents:
diff changeset
25 @echo " json to make JSON files"
kono
parents:
diff changeset
26 @echo " htmlhelp to make HTML files and a HTML help project"
kono
parents:
diff changeset
27 @echo " qthelp to make HTML files and a qthelp project"
kono
parents:
diff changeset
28 @echo " devhelp to make HTML files and a Devhelp project"
kono
parents:
diff changeset
29 @echo " epub to make an epub"
kono
parents:
diff changeset
30 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
kono
parents:
diff changeset
31 @echo " latexpdf to make LaTeX files and run them through pdflatex"
kono
parents:
diff changeset
32 @echo " text to make text files"
kono
parents:
diff changeset
33 @echo " man to make manual pages"
kono
parents:
diff changeset
34 @echo " texinfo to make Texinfo files"
kono
parents:
diff changeset
35 @echo " info to make Texinfo files and run them through makeinfo"
kono
parents:
diff changeset
36 @echo " gettext to make PO message catalogs"
kono
parents:
diff changeset
37 @echo " changes to make an overview of all changed/added/deprecated items"
kono
parents:
diff changeset
38 @echo " linkcheck to check all external links for integrity"
kono
parents:
diff changeset
39 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 clean:
kono
parents:
diff changeset
42 -rm -rf $(BUILDDIR)/*
kono
parents:
diff changeset
43
kono
parents:
diff changeset
44 html:
kono
parents:
diff changeset
45 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
kono
parents:
diff changeset
46 @echo
kono
parents:
diff changeset
47 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 dirhtml:
kono
parents:
diff changeset
50 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
kono
parents:
diff changeset
51 @echo
kono
parents:
diff changeset
52 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
kono
parents:
diff changeset
53
kono
parents:
diff changeset
54 singlehtml:
kono
parents:
diff changeset
55 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
kono
parents:
diff changeset
56 @echo
kono
parents:
diff changeset
57 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 pickle:
kono
parents:
diff changeset
60 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
kono
parents:
diff changeset
61 @echo
kono
parents:
diff changeset
62 @echo "Build finished; now you can process the pickle files."
kono
parents:
diff changeset
63
kono
parents:
diff changeset
64 json:
kono
parents:
diff changeset
65 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
kono
parents:
diff changeset
66 @echo
kono
parents:
diff changeset
67 @echo "Build finished; now you can process the JSON files."
kono
parents:
diff changeset
68
kono
parents:
diff changeset
69 htmlhelp:
kono
parents:
diff changeset
70 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
kono
parents:
diff changeset
71 @echo
kono
parents:
diff changeset
72 @echo "Build finished; now you can run HTML Help Workshop with the" \
kono
parents:
diff changeset
73 ".hhp project file in $(BUILDDIR)/htmlhelp."
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 qthelp:
kono
parents:
diff changeset
76 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
kono
parents:
diff changeset
77 @echo
kono
parents:
diff changeset
78 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
kono
parents:
diff changeset
79 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
kono
parents:
diff changeset
80 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/libgccjit.qhcp"
kono
parents:
diff changeset
81 @echo "To view the help file:"
kono
parents:
diff changeset
82 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/libgccjit.qhc"
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 devhelp:
kono
parents:
diff changeset
85 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
kono
parents:
diff changeset
86 @echo
kono
parents:
diff changeset
87 @echo "Build finished."
kono
parents:
diff changeset
88 @echo "To view the help file:"
kono
parents:
diff changeset
89 @echo "# mkdir -p $$HOME/.local/share/devhelp/libgccjit"
kono
parents:
diff changeset
90 @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/libgccjit"
kono
parents:
diff changeset
91 @echo "# devhelp"
kono
parents:
diff changeset
92
kono
parents:
diff changeset
93 epub:
kono
parents:
diff changeset
94 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
kono
parents:
diff changeset
95 @echo
kono
parents:
diff changeset
96 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 latex:
kono
parents:
diff changeset
99 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
kono
parents:
diff changeset
100 @echo
kono
parents:
diff changeset
101 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
kono
parents:
diff changeset
102 @echo "Run \`make' in that directory to run these through (pdf)latex" \
kono
parents:
diff changeset
103 "(use \`make latexpdf' here to do that automatically)."
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 latexpdf:
kono
parents:
diff changeset
106 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
kono
parents:
diff changeset
107 @echo "Running LaTeX files through pdflatex..."
kono
parents:
diff changeset
108 $(MAKE) -C $(BUILDDIR)/latex all-pdf
kono
parents:
diff changeset
109 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 text:
kono
parents:
diff changeset
112 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
kono
parents:
diff changeset
113 @echo
kono
parents:
diff changeset
114 @echo "Build finished. The text files are in $(BUILDDIR)/text."
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 man:
kono
parents:
diff changeset
117 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
kono
parents:
diff changeset
118 @echo
kono
parents:
diff changeset
119 @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
kono
parents:
diff changeset
120
kono
parents:
diff changeset
121 texinfo:
kono
parents:
diff changeset
122 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
kono
parents:
diff changeset
123 @echo
kono
parents:
diff changeset
124 @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
kono
parents:
diff changeset
125 @echo "Run \`make' in that directory to run these through makeinfo" \
kono
parents:
diff changeset
126 "(use \`make info' here to do that automatically)."
kono
parents:
diff changeset
127
kono
parents:
diff changeset
128 info:
kono
parents:
diff changeset
129 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
kono
parents:
diff changeset
130 @echo "Running Texinfo files through makeinfo..."
kono
parents:
diff changeset
131 make -C $(BUILDDIR)/texinfo info
kono
parents:
diff changeset
132 @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 gettext:
kono
parents:
diff changeset
135 $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
kono
parents:
diff changeset
136 @echo
kono
parents:
diff changeset
137 @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
kono
parents:
diff changeset
138
kono
parents:
diff changeset
139 changes:
kono
parents:
diff changeset
140 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
kono
parents:
diff changeset
141 @echo
kono
parents:
diff changeset
142 @echo "The overview file is in $(BUILDDIR)/changes."
kono
parents:
diff changeset
143
kono
parents:
diff changeset
144 linkcheck:
kono
parents:
diff changeset
145 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
kono
parents:
diff changeset
146 @echo
kono
parents:
diff changeset
147 @echo "Link check complete; look for any errors in the above output " \
kono
parents:
diff changeset
148 "or in $(BUILDDIR)/linkcheck/output.txt."
kono
parents:
diff changeset
149
kono
parents:
diff changeset
150 doctest:
kono
parents:
diff changeset
151 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
kono
parents:
diff changeset
152 @echo "Testing of doctests in the sources finished, look at the " \
kono
parents:
diff changeset
153 "results in $(BUILDDIR)/doctest/output.txt."