1+ # -*- Makefile -*-
12# Makefile for Sphinx documentation
23#
34
@@ -7,19 +8,13 @@ SPHINXBUILD = sphinx-build
78PAPER =
89BUILDDIR = build
910
10- # User-friendly check for sphinx-build
11- ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
12- $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
13- endif
14-
1511# Internal variables.
1612PAPEROPT_a4 = -D latex_paper_size=a4
1713PAPEROPT_letter = -D latex_paper_size=letter
1814ALLSPHINXOPTS = -d $(BUILDDIR ) /doctrees $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) source
19- # the i18n builder cannot share the environment and doctrees with the others
20- I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
15+ CLIENTSOPTS = -D master_doc=contents-client
2116
22- .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest coverage gettext
17+ .PHONY : help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
2318
2419help :
2520@echo " Please use \` make <target>' where <target> is one of"
@@ -30,32 +25,29 @@ help:
3025@echo " json to make JSON files"
3126@echo " htmlhelp to make HTML files and a HTML help project"
3227@echo " qthelp to make HTML files and a qthelp project"
33- @echo " applehelp to make an Apple Help Book"
3428@echo " devhelp to make HTML files and a Devhelp project"
3529@echo " epub to make an epub"
3630@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
3731@echo " latexpdf to make LaTeX files and run them through pdflatex"
38- @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
3932@echo " text to make text files"
4033@echo " man to make manual pages"
41- @echo " texinfo to make Texinfo files"
42- @echo " info to make Texinfo files and run them through makeinfo"
43- @echo " gettext to make PO message catalogs"
4434@echo " changes to make an overview of all changed/added/deprecated items"
45- @echo " xml to make Docutils-native XML files"
46- @echo " pseudoxml to make pseudoxml-XML files for display purposes"
4735@echo " linkcheck to check all external links for integrity"
4836@echo " doctest to run all doctests embedded in the documentation (if enabled)"
49- @echo " coverage to run coverage check of the documentation (if enabled)"
5037
5138clean :
52- rm -rf $(BUILDDIR)/*
39+ - rm -rf $(BUILDDIR ) /*
5340
5441html :
5542$(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
5643@echo
5744@echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
5845
46+ htmlclient :
47+ $(SPHINXBUILD ) -b html $(CLIENTSOPTS ) $(ALLSPHINXOPTS ) $(BUILDDIR ) /html-client
48+ @echo
49+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /html-client."
50+
5951dirhtml :
6052$(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml
6153@echo
@@ -87,25 +79,17 @@ qthelp:
8779@echo
8880@echo " Build finished; now you can run " qcollectiongenerator" with the" \
8981 " .qhcp project file in $( BUILDDIR) /qthelp, like this:"
90- @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/SimAVR .qhcp"
82+ @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/GVLab .qhcp"
9183@echo " To view the help file:"
92- @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/SimAVR.qhc"
93-
94- applehelp:
95- $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
96- @echo
97- @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
98- @echo "N.B. You won't be able to view it unless you put it in" \
99- "~/Library/Documentation/Help or install it in your application" \
100- "bundle."
84+ @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/GVLab.qhc"
10185
10286devhelp :
10387$(SPHINXBUILD ) -b devhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /devhelp
10488@echo
10589@echo " Build finished."
10690@echo " To view the help file:"
107- @echo "# mkdir -p $$HOME/.local/share/devhelp/SimAVR "
108- @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/SimAVR "
91+ @echo " # mkdir -p $$ HOME/.local/share/devhelp/GVLab "
92+ @echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/GVLab "
10993@echo " # devhelp"
11094
11195epub :
@@ -123,13 +107,7 @@ latex:
123107latexpdf :
124108$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
125109@echo " Running LaTeX files through pdflatex..."
126- $(MAKE) -C $(BUILDDIR)/latex all-pdf
127- @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
128-
129- latexpdfja:
130- $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
131- @echo "Running LaTeX files through platex and dvipdfmx..."
132- $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
110+ make -C $(BUILDDIR ) /latex all-pdf
133111@echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
134112
135113text :
@@ -142,24 +120,6 @@ man:
142120@echo
143121@echo " Build finished. The manual pages are in $( BUILDDIR) /man."
144122
145- texinfo:
146- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
147- @echo
148- @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
149- @echo "Run \`make' in that directory to run these through makeinfo" \
150- "(use \`make info' here to do that automatically)."
151-
152- info:
153- $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
154- @echo "Running Texinfo files through makeinfo..."
155- make -C $(BUILDDIR)/texinfo info
156- @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
157-
158- gettext:
159- $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
160- @echo
161- @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
162-
163123changes :
164124$(SPHINXBUILD ) -b changes $(ALLSPHINXOPTS ) $(BUILDDIR ) /changes
165125@echo
@@ -175,18 +135,3 @@ doctest:
175135$(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
176136@echo " Testing of doctests in the sources finished, look at the " \
177137 " results in $( BUILDDIR) /doctest/output.txt."
178-
179- coverage:
180- $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
181- @echo "Testing of coverage in the sources finished, look at the " \
182- "results in $(BUILDDIR)/coverage/python.txt."
183-
184- xml:
185- $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
186- @echo
187- @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
188-
189- pseudoxml:
190- $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
191- @echo
192- @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
0 commit comments