Skip to content

Commit ae70aaa

Browse files
committed
Update Makefile
python/cpython#101395
1 parent eccadb4 commit ae70aaa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
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+
2324
CPYTHON_CURRENT_COMMIT := e98fa7121dd80496c60f07bb51101b648fe27cda
2425
LANGUAGE := tr
2526
BRANCH := 3.11
@@ -65,7 +66,7 @@ PYTHON := $(shell which python3)
6566
MODE := html
6667
POSPELL_TMP_DIR := .pospell/
6768
JOBS := auto
68-
SERVE_PORT :=
69+
SPHINXERRORHANDLING = -W
6970

7071
# Detect OS
7172

@@ -90,13 +91,14 @@ all: ensure_prerequisites
9091
mkdir -p locales/$(LANGUAGE)/LC_MESSAGES/
9192
$(CP_CMD) -u --parents *.po */*.po locales/$(LANGUAGE)/LC_MESSAGES/
9293
$(MAKE) -C venv/cpython/Doc/ \
93-
SPHINXOPTS='-j$(JOBS) \
94-
-D locale_dirs=$(abspath locales) \
94+
JOBS='$(JOBS)' \
95+
SPHINXOPTS='-D locale_dirs=$(abspath locales) \
9596
-D language=$(LANGUAGE) \
9697
-D gettext_compact=0 \
9798
-D latex_engine=xelatex \
9899
-D latex_elements.inputenc= \
99100
-D latex_elements.fontenc=' \
101+
SPHINXERRORHANDLING=$(SPHINXERRORHANDLING) \
100102
$(MODE)
101103
@echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make htmlview' to see them."
102104

@@ -162,7 +164,7 @@ verifs: spell line-length sphinx-lint
162164
.PHONY: clean
163165
clean:
164166
@echo "Cleaning *.mo and $(POSPELL_TMP_DIR)"
165-
rm -rf $(POSPELL_TMP_DIR)
167+
rm -fr $(POSPELL_TMP_DIR) locales/$(LANGUAGE)/LC_MESSAGES/
166168
find -name '*.mo' -delete
167169
@echo "Cleaning build directory"
168170
$(MAKE) -C venv/cpython/Doc/ clean

0 commit comments

Comments
 (0)