Statistiques
| Branche: | Révision :

root / doc / sphinx_doc / Makefile @ c25275e2

Historique | Voir | Annoter | Télécharger (5,56 ko)

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