@@ -53,10 +53,22 @@ addlicense-install: go-install
5353doc-install :
5454 $(call check_install, pydocstyle)
5555 $(call check_install_extra, doc8, "doc8<1")
56+ $(call check_install, setuptools)
57+ $(call check_install, pbr)
5658 $(call check_install, sphinx)
5759 $(call check_install, sphinx_rtd_theme)
5860 $(call check_install_extra, sphinxcontrib.spelling, sphinxcontrib.spelling pyenchant)
5961
62+ spelling-system-install :
63+ python3 -c " import ctypes.util, sys; sys.exit(0 if ctypes.util.find_library('enchant-2') or ctypes.util.find_library('enchant') else 1)" || \
64+ ([ " $$ (uname -s)" = " Linux" ] && \
65+ if command -v sudo > /dev/null 2>&1 ; then \
66+ sudo apt-get update && sudo apt-get install -y libenchant-2-dev; \
67+ else \
68+ apt-get update && apt-get install -y libenchant-2-dev; \
69+ fi && \
70+ python3 -c " import ctypes.util, sys; sys.exit(0 if ctypes.util.find_library('enchant-2') or ctypes.util.find_library('enchant') else 1)" )
71+
6072auditwheel-install :
6173 $(call check_install_extra, auditwheel, auditwheel typed-ast patchelf)
6274
@@ -119,15 +131,15 @@ bazel-clean: bazel-install
119131# documentation
120132
121133addlicense : addlicense-install
122- addlicense -c $(COPYRIGHT ) -l apache -y 2023 -check $(PROJECT_FOLDER )
134+ addlicense -c $(COPYRIGHT ) -l apache -y 2026 -check $(PROJECT_FOLDER )
123135
124136docstyle : doc-install
125137 pydocstyle $(PROJECT_NAME ) && doc8 docs && cd docs && make html SPHINXOPTS=" -W"
126138
127139doc : doc-install
128140 cd docs && make html && cd _build/html && python3 -m http.server
129141
130- spelling : doc-install
142+ spelling : doc-install spelling-system-install
131143 cd docs && make spelling SPHINXOPTS=" -W"
132144
133145doc-clean :
@@ -144,7 +156,7 @@ format: py-format-install clang-format-install buildifier-install addlicense-ins
144156 yapf -ir $(PYTHON_FILES )
145157 clang-format -style=file -i $(CPP_FILES )
146158 buildifier -r -lint=fix $(BAZEL_FILES )
147- addlicense -c $(COPYRIGHT ) -l apache -y 2023 $(PROJECT_FOLDER )
159+ addlicense -c $(COPYRIGHT ) -l apache -y 2026 $(PROJECT_FOLDER )
148160
149161# Build docker images
150162
0 commit comments