ansible-syslog-receiver/Makefile

18 lines
464 B
Makefile
Raw Permalink Normal View History

2024-01-19 08:25:49 +01:00
.PHONY: all venv clean
ALL_TARGETS := venv
PYTHON_BIN?=python3
all: $(ALL_TARGETS)
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d venv || $(PYTHON_BIN) -m venv venv
. venv/bin/activate; pip install --upgrade pip wheel
. venv/bin/activate; pip install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org -r requirements.txt
touch venv/bin/activate
clean:
test -d venv && rm -rf venv || exit 0