1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-22 17:52:30 +01:00

Allow overriding python3 & pip3 binary in Makefile

This commit is contained in:
cyqsimon 2023-11-17 10:03:23 +08:00
parent 22f48c5ad3
commit e724aace49
No known key found for this signature in database
GPG key ID: 1D8CE2F297390D65

View file

@ -1,4 +1,6 @@
MAKEFLAGS := --jobs=1
PYTHON := python3
PIP := pip3
VERSION := $(shell git describe --tag)
COMMIT := $(shell git rev-parse --short HEAD)
@ -115,16 +117,16 @@ build-deps-ubuntu:
docs: docs-deps docs-build
docs-venv: .PHONY
python3 -m venv ./venv
$(PYTHON) -m venv ./venv
docs-build: docs-venv
(. venv/bin/activate && mkdocs build)
(. venv/bin/activate && $(PYTHON) mkdocs build)
docs-deps: docs-venv
(. venv/bin/activate && pip3 install -r requirements.txt)
(. venv/bin/activate && $(PIP) install -r requirements.txt)
docs-deps-update: .PHONY
(. venv/bin/activate && pip3 install -r requirements.txt --upgrade)
(. venv/bin/activate && $(PIP) install -r requirements.txt --upgrade)
# Web app