Skip to content

Commit 692aa96

Browse files
authored
Update Makefile (python#110)
1 parent eccadb4 commit 692aa96

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Makefile

+9-5
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,8 @@ PYTHON := $(shell which python3)
6566
MODE := html
6667
POSPELL_TMP_DIR := .pospell/
6768
JOBS := 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
9092
mkdir -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
163167
clean:
164168
@echo "Cleaning *.mo and $(POSPELL_TMP_DIR)"
165-
rm -rf $(POSPELL_TMP_DIR)
169+
rm -rf $(POSPELL_TMP_DIR) locales/$(LANGUAGE)/LC_MESSAGES/
166170
find -name '*.mo' -delete
167171
@echo "Cleaning build directory"
168172
$(MAKE) -C venv/cpython/Doc/ clean

0 commit comments

Comments
 (0)