@@ -156,28 +156,22 @@ epub:
156156 @echo " Build finished. The epub file is in $( BUILDDIR) /epub."
157157
158158latex :
159- $(PYTHON ) docs/prepare_readme_for_latex.py
160159 $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
161- mv README.rst.bak README.rst
162160 @echo
163161 @echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
164162 @echo " Run \` make' in that directory to run these through (pdf)latex" \
165163 " (use \` make latexpdf' here to do that automatically)."
166164
167165# seems to be malfunctioning
168166latexpdf :
169- $(PYTHON ) docs/prepare_readme_for_latex.py
170167 $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
171- mv README.rst.bak README.rst
172168 @echo " Running LaTeX files through pdflatex..."
173169 $(MAKE ) -C $(BUILDDIR ) /latex all-pdf
174170 @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
175171
176172# seems to be malfunctioning
177173latexpdfja :
178- $(PYTHON ) docs/prepare_readme_for_latex.py
179174 $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
180- mv README.rst.bak README.rst
181175 @echo " Running LaTeX files through platex and dvipdfmx..."
182176 $(MAKE ) -C $(BUILDDIR ) /latex all-pdf-ja
183177 @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
@@ -277,20 +271,20 @@ check-translate:
277271
278272.PHONY : stubs
279273stubs :
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 \
285279 $(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
294288
295289.PHONY : check-stubs
296290check-stubs : stubs
0 commit comments