website/Makefile

22 lines
399 B
Makefile

VENV = venv
PYTHON = $(VENV)/bin/python3
PIP = $(VENV)/bin/pip
POSTERS = poster_light.png poster_dark.png
output: $(POSTERS)
poster_%.png: image_poster.py $(VENV)/bin/activate
$(PYTHON) $< 2>/dev/null
$(VENV)/bin/activate: requirements.txt
python3 -m venv $(VENV)
echo '*' > $(VENV)/.gitignore
$(PIP) install -r requirements.txt
clean:
$(RM) -r __pycache__
$(RM) -r $(VENV)
$(RM) *.png