8000 Amélioration du Makefile (#23) · python/python-docs-fr@75f7e91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75f7e91

Browse files
Christophe NanteuilchristopheNan
authored andcommitted
Amélioration du Makefile (#23)
- ajout du nettoyage de locales/$(LANGUAGE)/LC_MESSAGES/ dans la cible 'clean' - variable supplémentaire pour préciser en ligne de commande la gestion des erreurs par Sphinx - séparation dans l'appel au Makefile de cpython du paramètre JOBS pour qu'il soit pris en compte (en lien avec une PR vers cpython) - suppression de la variable SERVE_PORT devenue inutile depuis le commit da21f1d Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com> Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/23 Reviewed-by: Julien Palard <julien@palard.fr> Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost> Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
1 parent 1e0489f commit 75f7e91

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ PYTHON := $(shell which python3)
6565
MODE := html
6666
POSPELL_TMP_DIR := .pospell/
6767
JOBS := auto
68-
SERVE_PORT :=
68+
SPHINXERRORHANDLING = -W
6969

7070
# Detect OS
7171

@@ -90,13 +90,14 @@ all: ensure_prerequisites
9090
mkdir -p locales/$(LANGUAGE)/LC_MESSAGES/
9191
$(CP_CMD) -u --parents *.po */*.po locales/$(LANGUAGE)/LC_MESSAGES/
9292
$(MAKE) -C venv/cpython/Doc/ \
93-
SPHINXOPTS='-j$(JOBS) \
94-
-D locale_dirs=$(abspath locales) \
93+
JOBS='$(JOBS)' \
94+
SPHINXOPTS='-D locale_dirs=$(abspath locales) \
9595
-D language=$(LANGUAGE) \
9696
-D gettext_compact=0 \
9797
-D latex_engine=xelatex \
9898
-D latex_elements.inputenc= \
9999
-D latex_elements.fontenc=' \
100+
SPHINXERRORHANDLING=$(SPHINXERRORHANDLING) \
100101
$(MODE)
101102
@echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make htmlview' to see them."
102103

@@ -162,7 +163,7 @@ verifs: spell line-length sphinx-lint
162163
.PHONY: clean
163164
clean:
164165
@echo "Cleaning *.mo and $(POSPELL_TMP_DIR)"
165-
rm -fr $(POSPELL_TMP_DIR)
166+
rm -fr $(POSPELL_TMP_DIR) locales/$(LANGUAGE)/LC_MESSAGES/
166167
find -name '*.mo' -delete
167168
@echo "Cleaning build directory"
168169
$(MAKE) -C venv/cpython/Doc/ clean

0 commit comments

Comments
 (0)
0