From da21f1dbe04e36a21da14bbb38f843125e07f237 Mon Sep 17 00:00:00 2001 From: edith <37245459+eviau@users.noreply.github.com> Date: Sun, 13 Nov 2022 09:29:30 -0500 Subject: [PATCH] =?UTF-8?q?m=C3=A0j:=20utilisation=20de=20htmlserve=20au?= =?UTF-8?q?=20lieu=20de=20serve=20dans=20le=20Makefile=20(#1919)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING.rst | 4 ++-- Makefile | 13 ++++--------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index f68ba1cb..45d349a7 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -315,7 +315,7 @@ documentation local : .. code-block:: bash - make serve + make htmlview La documentation est publiée à l'adresse ``_. @@ -329,7 +329,7 @@ nécessaire. Poedit donne beaucoup d'avertissements, par exemple pour vous informer que « la traduction devrait commencer par une majuscule » car c'est le cas pour la source. Ces avertissements ne sont pas tous fondés. En cas de doute, -*affichez et relisez la page HTML produite* avec ``make serve``. +*affichez et relisez la page HTML produite* avec ``make htmlview``. Quatrième étape : publier sa traduction ======================================= diff --git a/Makefile b/Makefile index 77a86bac..7e3521e2 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ all: ensure_prerequisites -D latex_elements.inputenc= \ -D latex_elements.fontenc=' \ $(MODE) - @echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make serve' to see them." + @echo "Build success, open file://$(abspath venv/cpython/)/Doc/build/html/index.html or run 'make htmlview' to see them." # We clone cpython/ inside venv/ because venv/ is the only directory @@ -117,14 +117,9 @@ ensure_prerequisites: venv/cpython/.git/HEAD exit 1; \ fi - -.PHONY: serve -serve: -ifdef SERVE_PORT - $(MAKE) -C venv/cpython/Doc/ serve SERVE_PORT=$(SERVE_PORT) -else - $(MAKE) -C venv/cpython/Doc/ serve -endif +.PHONY: htmlview +htmlview: MODE=htmlview +htmlview: all .PHONY: todo todo: ensure_prerequisites