You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+36-6Lines changed: 36 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,15 @@
3
3
4
4
# You can set these variables from the command line.
5
5
SPHINXOPTS =
6
-
SPHINXBUILD = sphinx-build
6
+
SPHINXBUILD = ./bin/sphinx-build
7
7
PAPER =
8
8
BUILDDIR = build
9
9
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
+
10
15
# Internal variables.
11
16
PAPEROPT_a4 = -D latex_paper_size=a4
12
17
PAPEROPT_letter = -D latex_paper_size=letter
@@ -29,17 +34,20 @@ help:
29
34
@echo " epub to make an epub"
30
35
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
31
36
@echo " latexpdf to make LaTeX files and run them through pdflatex"
37
+
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
32
38
@echo " text to make text files"
33
39
@echo " man to make manual pages"
34
40
@echo " texinfo to make Texinfo files"
35
41
@echo " info to make Texinfo files and run them through makeinfo"
36
42
@echo " gettext to make PO message catalogs"
37
43
@echo " changes to make an overview of all changed/added/deprecated items"
44
+
@echo " xml to make Docutils-native XML files"
45
+
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
38
46
@echo " linkcheck to check all external links for integrity"
39
47
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
40
48
41
49
clean:
42
-
-rm -rf $(BUILDDIR)/*
50
+
rm -rf $(BUILDDIR)/*
43
51
44
52
html:
45
53
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS)$(BUILDDIR)/html
@@ -77,17 +85,17 @@ qthelp:
77
85
@echo
78
86
@echo "Build finished; now you can run "qcollectiongenerator" with the"\
79
87
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
0 commit comments