diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f82243b --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..50fd310 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +cairosvg +markdown +freetype-py +python-dateutil