This commit is contained in:
cyqsimon 2023-10-30 12:27:47 -06:00 committed by GitHub
commit 433ce9e613
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 15 deletions

View file

@ -1,7 +1,11 @@
MAKEFLAGS := --jobs=1
VERSION := $(shell git describe --tag)
COMMIT := $(shell git rev-parse --short HEAD)
PY_BIN := $(shell tools/get-python-bin.sh python)
PIP_BIN := $(shell tools/get-python-bin.sh pip)
.PHONY:
help:
@ -111,25 +115,13 @@ build-deps-ubuntu:
docs: docs-deps docs-build
docs-build: .PHONY
@if ! /bin/echo -e "import sys\nif sys.version_info < (3,8):\n exit(1)" | python3; then \
if which python3.8; then \
echo "python3.8 $(shell which mkdocs) build"; \
python3.8 $(shell which mkdocs) build; \
else \
echo "ERROR: Python version too low. mkdocs-material needs >= 3.8"; \
exit 1; \
fi; \
else \
echo "mkdocs build"; \
mkdocs build; \
fi
PY=$$(which $(PY_BIN)) && MKDOCS=$$(which mkdocs) && $$PY $$MKDOCS build
docs-deps: .PHONY
pip3 install -r requirements.txt
PIP=$$(which $(PIP_BIN)) && $$PIP install -r requirements.txt
docs-deps-update: .PHONY
pip3 install -r requirements.txt --upgrade
PIP=$$(which $(PIP_BIN)) && $$PIP install -r requirements.txt --upgrade
# Web app