@@ -28,13 +28,9 @@ html: venv
28
28
htmlview : html
29
29
$(PYTHON ) -c " import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/index.html'))"
30
30
31
- .PHONY : ensure-sphinx-autobuild
32
- ensure-sphinx-autobuild : venv
33
- $(call ensure_package,sphinx-autobuild)
34
-
35
31
# # htmllive to rebuild and reload HTML files in your browser
36
32
.PHONY : htmllive
37
- htmllive : SPHINXBUILD = $(VENVDIR ) /bin/ sphinx-autobuild
33
+ htmllive : SPHINXBUILD = PATH= $(VENVDIR ) /bin:$$PATH sphinx-autobuild
38
34
# Arbitrarily selected ephemeral port between 49152–65535
39
35
# to avoid conflicts with other processes:
40
36
htmllive : SPHINXERRORHANDLING = --re-ignore="/\.idea/|/venv/|/pep-0000.rst|/topic/" --open-browser --delay 0 --port 55302
@@ -53,7 +49,7 @@ linkcheck: html
53
49
# # clean to remove the venv and build files
54
50
.PHONY : clean
55
51
clean : clean-venv
56
- -rm -rf build topic
52
+ -rm -rf $( BUILDDIR )
57
53
58
54
# # clean-venv to remove the venv
59
55
.PHONY : clean-venv
@@ -89,11 +85,11 @@ _ensure-package: venv
89
85
90
86
.PHONY : _ensure-pre-commit
91
87
_ensure-pre-commit :
92
- make _ensure-package PACKAGE=pre-commit
88
+ $( MAKE ) _ensure-package PACKAGE=pre-commit
93
89
94
90
.PHONY : _ensure-sphinx-autobuild
95
91
_ensure-sphinx-autobuild :
96
- make _ensure-package PACKAGE=sphinx-autobuild
92
+ $( MAKE ) _ensure-package PACKAGE=sphinx-autobuild
97
93
98
94
# # lint to lint all the files
99
95
.PHONY : lint
@@ -107,8 +103,7 @@ test: venv
107
103
108
104
# # spellcheck to check spelling
109
105
.PHONY : spellcheck
110
- spellcheck : venv
111
- $(call ensure_package,pre_commit)
106
+ spellcheck : _ensure-pre-commit
112
107
$(VENVDIR ) /bin/python3 -m pre_commit run --all-files --hook-stage manual codespell
113
108
114
109
.PHONY : help
0 commit comments