Possibilité de spécifier le port sur lequel servir la doc produite (#1810)

This commit is contained in:
Christophe Nanteuil 2022-02-06 15:45:57 +01:00 committed by GitHub
commit d3dc3685b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ PYTHON := $(shell which python3)
MODE := html
POSPELL_TMP_DIR := .pospell/
JOBS := auto
SERVE_PORT :=
# Detect OS
@ -98,7 +99,11 @@ ensure_prerequisites: venv/cpython/.git/HEAD
.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: todo
todo: ensure_prerequisites