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