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