diff options
author | dozens | 2025-04-16 10:39:21 -0600 |
---|---|---|
committer | Matt Arnold | 2025-04-16 13:32:07 -0400 |
commit | a6f279191c52a2627c2809503e0b697defc1e5d9 (patch) | |
tree | 7da1ae8307dc63be7f3abae3d15ac3b92dfd34f1 /Makefile | |
parent | 50d4a8634f134c0d5276f7ed65d06fa9ddbf03a7 (diff) |
Add makefile
automate building and serving with make
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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) |