Skip to content

Commit bea2855

Browse files
committed
Remove check for binary, as it's not needed, less changes to makefile
1 parent 5bc397a commit bea2855

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

Makefile

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22

33
# You can set these variables from the command line.
44
SPHINXOPTS =
5-
SPHINXBUILD = sphinx-build
5+
SPHINXBUILD = pipenv run sphinx-build
66
PAPER =
77
BUILDDIR = _build
88

9-
# User-friendly check for sphinx-build
10-
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
11-
$(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/)
12-
endif
13-
149
# Internal variables.
1510
PAPEROPT_a4 = -D latex_paper_size=a4
1611
PAPEROPT_letter = -D latex_paper_size=letter
@@ -52,38 +47,38 @@ clean:
5247
rm -rf $(BUILDDIR)/*
5348

5449
html:
55-
pipenv run $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
50+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5651
@echo
5752
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5853

5954
dirhtml:
60-
pipenv run $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
55+
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
6156
@echo
6257
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
6358

6459
singlehtml:
65-
pipenv run $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
60+
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
6661
@echo
6762
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
6863

6964
pickle:
70-
pipenv run $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
65+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
7166
@echo
7267
@echo "Build finished; now you can process the pickle files."
7368

7469
json:
75-
pipenv run $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
70+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
7671
@echo
7772
@echo "Build finished; now you can process the JSON files."
7873

7974
htmlhelp:
80-
pipenv run $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
75+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
8176
@echo
8277
@echo "Build finished; now you can run HTML Help Workshop with the" \
8378
".hhp project file in $(BUILDDIR)/htmlhelp."
8479

8580
qthelp:
86-
pipenv run $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
81+
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
8782
@echo
8883
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
8984
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@@ -92,15 +87,15 @@ qthelp:
9287
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/PHP-HTTP.qhc"
9388

9489
applehelp:
95-
pipenv run $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
90+
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
9691
@echo
9792
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
9893
@echo "N.B. You won't be able to view it unless you put it in" \
9994
"~/Library/Documentation/Help or install it in your application" \
10095
"bundle."
10196

10297
devhelp:
103-
pipenv run $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
98+
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
10499
@echo
105100
@echo "Build finished."
106101
@echo "To view the help file:"
@@ -109,88 +104,88 @@ devhelp:
109104
@echo "# devhelp"
110105

111106
epub:
112-
pipenv run $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
107+
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
113108
@echo
114109
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
115110

116111
latex:
117-
pipenv run $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
112+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
118113
@echo
119114
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
120115
@echo "Run \`make' in that directory to run these through (pdf)latex" \
121116
"(use \`make latexpdf' here to do that automatically)."
122117

123118
latexpdf:
124-
pipenv run $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
119+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
125120
@echo "Running LaTeX files through pdflatex..."
126121
$(MAKE) -C $(BUILDDIR)/latex all-pdf
127122
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
128123

129124
latexpdfja:
130-
pipenv run $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
125+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
131126
@echo "Running LaTeX files through platex and dvipdfmx..."
132127
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
133128
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
134129

135130
text:
136-
pipenv run $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
131+
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
137132
@echo
138133
@echo "Build finished. The text files are in $(BUILDDIR)/text."
139134

140135
man:
141-
pipenv run $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
136+
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
142137
@echo
143138
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
144139

145140
texinfo:
146-
pipenv run $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
141+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
147142
@echo
148143
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
149144
@echo "Run \`make' in that directory to run these through makeinfo" \
150145
"(use \`make info' here to do that automatically)."
151146

152147
info:
153-
pipenv run $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
148+
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
154149
@echo "Running Texinfo files through makeinfo..."
155150
make -C $(BUILDDIR)/texinfo info
156151
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
157152

158153
gettext:
159-
pipenv run $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
154+
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
160155
@echo
161156
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
162157

163158
changes:
164-
pipenv run $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
159+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
165160
@echo
166161
@echo "The overview file is in $(BUILDDIR)/changes."
167162

168163
linkcheck:
169-
pipenv run $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
164+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
170165
@echo
171166
@echo "Link check complete; look for any errors in the above output " \
172167
"or in $(BUILDDIR)/linkcheck/output.txt."
173168

174169
doctest:
175-
pipenv run $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
170+
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
176171
@echo "Testing of doctests in the sources finished, look at the " \
177172
"results in $(BUILDDIR)/doctest/output.txt."
178173

179174
coverage:
180-
pipenv run $(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
175+
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
181176
@echo "Testing of coverage in the sources finished, look at the " \
182177
"results in $(BUILDDIR)/coverage/python.txt."
183178

184179
xml:
185-
pipenv run $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
180+
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
186181
@echo
187182
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."
188183

189184
pseudoxml:
190-
pipenv run $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
185+
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
191186
@echo
192187
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
193188

194189
spelling:
195-
pipenv run $(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
190+
$(SPHINXBUILD) -b spelling $(ALLSPHINXOPTS) $(BUILDDIR)/spelling
196191
@echo "Spelling report generated in $(BUILDDIR)/spelling/output.txt"

0 commit comments

Comments
 (0)