@@ -156,28 +156,22 @@ epub:
156
156
@echo " Build finished. The epub file is in $( BUILDDIR) /epub."
157
157
158
158
latex :
159
- $(PYTHON ) docs/prepare_readme_for_latex.py
160
159
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
161
- mv README.rst.bak README.rst
162
160
@echo
163
161
@echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
164
162
@echo " Run \` make' in that directory to run these through (pdf)latex" \
165
163
" (use \` make latexpdf' here to do that automatically)."
166
164
167
165
# seems to be malfunctioning
168
166
latexpdf :
169
- $(PYTHON ) docs/prepare_readme_for_latex.py
170
167
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
171
- mv README.rst.bak README.rst
172
168
@echo " Running LaTeX files through pdflatex..."
173
169
$(MAKE ) -C $(BUILDDIR ) /latex all-pdf
174
170
@echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
175
171
176
172
# seems to be malfunctioning
177
173
latexpdfja :
178
- $(PYTHON ) docs/prepare_readme_for_latex.py
179
174
$(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
180
- mv README.rst.bak README.rst
181
175
@echo " Running LaTeX files through platex and dvipdfmx..."
182
176
$(MAKE ) -C $(BUILDDIR ) /latex all-pdf-ja
183
177
@echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
@@ -277,20 +271,20 @@ check-translate:
277
271
278
272
.PHONY : stubs
279
273
stubs :
280
- @ rm -rf circuitpython-stubs
281
- @ mkdir circuitpython-stubs
282
- @ $(PYTHON ) tools/extract_pyi.py shared-bindings/ $(STUBDIR )
283
- @ $(PYTHON ) tools/extract_pyi.py extmod/ulab/code/ $(STUBDIR ) /ulab
284
- @ for d in ports/* /bindings; do \
274
+ rm -rf circuitpython-stubs
275
+ mkdir circuitpython-stubs
276
+ $(PYTHON ) tools/extract_pyi.py shared-bindings/ $(STUBDIR )
277
+ $(PYTHON ) tools/extract_pyi.py extmod/ulab/code/ $(STUBDIR ) /ulab
278
+ for d in ports/* /bindings; do \
285
279
$(PYTHON ) tools/extract_pyi.py " $$ d" $(STUBDIR ) ; done
286
- @ sed -e " s,__version__,` python -msetuptools_scm` ," < setup.py-stubs > circuitpython-stubs/setup.py
287
- @ cp README.rst-stubs circuitpython-stubs/README.rst
288
- @ cp MANIFEST.in-stubs circuitpython-stubs/MANIFEST.in
289
- @ $(PYTHON ) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
290
- @ cp -r tools/board_stubs/circuitpython_setboard circuitpython-stubs/circuitpython_setboard
291
- @ $(PYTHON ) -m build circuitpython-stubs
292
- @ touch circuitpython-stubs/board/__init__.py
293
- @ touch circuitpython-stubs/board_definitions/__init__.py
280
+ sed -e " s,__version__,` python -msetuptools_scm` ," < setup.py-stubs > circuitpython-stubs/setup.py
281
+ cp README.rst-stubs circuitpython-stubs/README.rst
282
+ cp MANIFEST.in-stubs circuitpython-stubs/MANIFEST.in
283
+ $(PYTHON ) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
284
+ cp -r tools/board_stubs/circuitpython_setboard circuitpython-stubs/circuitpython_setboard
285
+ $(PYTHON ) -m build circuitpython-stubs
286
+ touch circuitpython-stubs/board/__init__.py
287
+ touch circuitpython-stubs/board_definitions/__init__.py
294
288
295
289
.PHONY : check-stubs
296
290
check-stubs : stubs
0 commit comments