Possibilité de spécifier le port sur lequel servir la doc produite (#1810)
This commit is contained in:
parent 3287e870ff
commit d3dc3685b4
2 changed files with 15 additions and 3 deletions
5 Makefile
5
Makefile | | @ -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 | ||||
| | | |||
Loading…
Add table
Add a link
Reference in a new issue