From e5a04e8336f3503669bd288f3dd9910e465af708 Mon Sep 17 00:00:00 2001 From: Markus Meissner Date: Sat, 14 Dec 2024 16:38:18 +0100 Subject: [PATCH] Makefile: minor improvements --- Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 23e0949f2..d3e860c7f 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,14 @@ - -all: venv +.PHONY: docs +docs: venv venv/bin/sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en venv: python -m venv venv venv/bin/pip3 install -r requirements.txt -clean: - rm -rf dist build venv - +.PHONY: check check: venv # ignore-messages is needed due to links being used in directives, which # are not visible by rstcheck as these directives are ignored (mostly faq) @@ -18,3 +16,13 @@ check: venv --ignore-messages "faq(.*)Hyperlink target(.*)is not referenced" \ source +pkg: venv docs + mv dist/en/_images dist/_images + rm -rf dist/*/_sources dist/*/_images + cp redirects/.htaccess dist + + +clean: + rm -rf dist build venv + +.PHONY: docs check pkg