From a6f279191c52a2627c2809503e0b697defc1e5d9 Mon Sep 17 00:00:00 2001 From: dozens Date: Wed, 16 Apr 2025 10:39:21 -0600 Subject: Add makefile automate building and serving with make --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d42076 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +VENV=venv +PYTHON=$(VENV)/bin/python +PIP=$(VENV)/bin/pip + +.PHONY: run +run: $(VENV)/bin/activate app.py + $(PYTHON) app.py + +.PHONY: install +install: $(VENV)/bin/activate + +$(VENV)/bin/activate: requirements.txt + python3 -m venv $(VENV) + $(PIP) install -r $^ + +.PHONY: migrate +migrate: migrate.py + $(PYTHON) $^ install + +.PHONY: clean +clean: + rm -rf __pycache__ + rm -rf $(VENV) -- cgit 1.4.1-2-gfad0