diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..153c6d7 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +.PHONY: build events dev stop help prep + +help: + @echo "Available commands:" + @echo " make prep - Create venv and install requirements" + @echo " make events - Update site from CSV (build pages + images)" + @echo " make dev - Start development server" + @echo " make stop - Stop development server" + @echo " make build - Full website build sequence" + @echo " make help - Show this help message" + +prep: + python3 -m venv .venv + ./.venv/bin/pip install --upgrade pip + ./.venv/bin/pip install -r requirements.txt + +build: + ./.venv/bin/python atom_gen.py + ./.venv/bin/python prep.py + ./.venv/bin/python build_pages.py + +events: + ./.venv/bin/python build_pages.py + ./.venv/bin/python image_poster.py + +dev: + nginx -p . -c nginx.dev.conf + +stop: + nginx -p . -s stop