@@ -6,6 +6,7 @@ SPHINXOPTS =
66SPHINXBUILD = sphinx-build
77PAPER =
88BUILDDIR = _build
9+ PIP = pip
910
1011# User-friendly check for sphinx-build
1112ifeq ($(shell which $(SPHINXBUILD ) >/dev/null 2>&1; echo $$? ) , 1)
@@ -53,43 +54,50 @@ clean:
5354
5455.PHONY : html
5556html :
57+ $(PIP) install .. --no-deps
5658 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
5759 @echo
5860 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5961
6062.PHONY : dirhtml
6163dirhtml :
64+ $(PIP) install .. --no-deps
6265 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
6366 @echo
6467 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
6568
6669.PHONY : singlehtml
6770singlehtml :
71+ $(PIP) install .. --no-deps
6872 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
6973 @echo
7074 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
7175
7276.PHONY : pickle
7377pickle :
78+ $(PIP) install .. --no-deps
7479 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
7580 @echo
7681 @echo "Build finished; now you can process the pickle files."
7782
7883.PHONY : json
7984json :
85+ $(PIP) install .. --no-deps
8086 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
8187 @echo
8288 @echo "Build finished; now you can process the JSON files."
8389
8490.PHONY : htmlhelp
8591htmlhelp :
92+ $(PIP) install .. --no-deps
8693 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
8794 @echo
8895 @echo "Build finished; now you can run HTML Help Workshop with the" \
8996 ".hhp project file in $(BUILDDIR)/htmlhelp."
9097
9198.PHONY : qthelp
9299qthelp :
100+ $(PIP) install .. --no-deps
93101 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
94102 @echo
95103 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
@@ -100,6 +108,7 @@ qthelp:
100108
101109.PHONY : applehelp
102110applehelp :
111+ $(PIP) install .. --no-deps
103112 $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
104113 @echo
105114 @echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@@ -109,6 +118,7 @@ applehelp:
109118
110119.PHONY : devhelp
111120devhelp :
121+ $(PIP) install .. --no-deps
112122 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
113123 @echo
114124 @echo "Build finished."
@@ -119,12 +129,14 @@ devhelp:
119129
120130.PHONY : epub
121131epub :
132+ $(PIP) install .. --no-deps
122133 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
123134 @echo
124135 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
125136
126137.PHONY : latex
127138latex :
139+ $(PIP) install .. --no-deps
128140 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
129141 @echo
130142 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@@ -133,32 +145,37 @@ latex:
133145
134146.PHONY : latexpdf
135147latexpdf :
148+ $(PIP) install .. --no-deps
136149 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
137150 @echo "Running LaTeX files through pdflatex..."
138151 $(MAKE) -C $(BUILDDIR)/latex all-pdf
139152 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
140153
141154.PHONY : latexpdfja
142155latexpdfja :
156+ $(PIP) install .. --no-deps
143157 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
144158 @echo "Running LaTeX files through platex and dvipdfmx..."
145159 $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
146160 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
147161
148162.PHONY : text
149163text :
164+ $(PIP) install .. --no-deps
150165 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
151166 @echo
152167 @echo "Build finished. The text files are in $(BUILDDIR)/text."
153168
154169.PHONY : man
155170man :
171+ $(PIP) install .. --no-deps
156172 $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
157173 @echo
158174 @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
159175
160176.PHONY : texinfo
161177texinfo :
178+ $(PIP) install .. --no-deps
162179 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
163180 @echo
164181 @echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@@ -167,13 +184,15 @@ texinfo:
167184
168185.PHONY : info
169186info :
187+ $(PIP) install .. --no-deps
170188 $(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
171189 @echo "Running Texinfo files through makeinfo..."
172190 make -C $(BUILDDIR)/texinfo info
173191 @echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."
174192
175193.PHONY : gettext
176194gettext :
195+ $(PIP) install .. --no-deps
177196 $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
178197 @echo
179198 @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
@@ -205,12 +224,14 @@ coverage:
205224
206225.PHONY : xml
207226xml :
227+ $(PIP) install .. --no-deps
208228 $(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
209229 @echo
210230 @echo "Build finished. The XML files are in $(BUILDDIR)/xml."
211231
212232.PHONY : pseudoxml
213233pseudoxml :
234+ $(PIP) install .. --no-deps
214235 $(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
215236 @echo
216237 @echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
0 commit comments