Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / docs / Makefile @ ea6e9a08

History | View | Annotate | Download (5.4 kB)

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