2020# from which we generated our po files. We use it here so when we
2121# test build, we're building with the .rst files that generated our
2222# .po files.
23+
2324CPYTHON_CURRENT_COMMIT := e98fa7121dd80496c60f07bb51101b648fe27cda
2425LANGUAGE := tr
2526BRANCH := 3.11
@@ -65,7 +66,8 @@ PYTHON := $(shell which python3)
6566MODE := html
6667POSPELL_TMP_DIR := .pospell/
6768JOBS := auto
68- SERVE_PORT :=
69+ ADDITIONAL_ARGS := --keep-going --color
70+ SPHINXERRORHANDLING = -W
6971
7072# Detect OS
7173
@@ -90,13 +92,15 @@ all: ensure_prerequisites
9092mkdir -p locales/$(LANGUAGE ) /LC_MESSAGES/
9193$(CP_CMD ) -u --parents* .po* /* .po locales/$(LANGUAGE ) /LC_MESSAGES/
9294$(MAKE ) -C venv/cpython/Doc/\
93- SPHINXOPTS= ' -j $(JOBS) \
94- -D locale_dirs=$(abspath locales) \
95+ JOBS= ' $(JOBS)' \
96+ SPHINXOPTS= ' -D locale_dirs=$(abspath locales) \
9597 -D language=$(LANGUAGE ) \
9698 -D gettext_compact=0\
9799 -D latex_engine=xelatex\
98100 -D latex_elements.inputenc=\
99- -D latex_elements.fontenc=' \
101+ -D latex_elements.fontenc=\
102+ $(ADDITIONAL_ARGS ) ' \
103+ SPHINXERRORHANDLING=$(SPHINXERRORHANDLING ) \
100104$(MODE )
101105@echo" Build success, open file://$( abspath venv/cpython/) /Doc/build/html/index.html or run 'make htmlview' to see them."
102106
@@ -162,7 +166,7 @@ verifs: spell line-length sphinx-lint
162166.PHONY : clean
163167clean :
164168@echo" Cleaning *.mo and$( POSPELL_TMP_DIR) "
165- rm -rf$(POSPELL_TMP_DIR )
169+ rm -rf$(POSPELL_TMP_DIR ) locales/ $( LANGUAGE ) /LC_MESSAGES/
166170find -name' *.mo' -delete
167171@echo" Cleaning build directory"
168172$(MAKE ) -C venv/cpython/Doc/ clean