build: .venv .venv/bin/python build.py serve: build cd public && ../.venv/bin/python -m http.server 8000 check: build @! grep -rnE '<(link|img|script|source|iframe|video|audio)[^>]*(src|srcset|href)="(https?:|//|data:)' public --include='*.html' @! grep -rnE '<(script|style)[ >]|style="' public --include='*.html' @echo "no external resources, no inline code" DEST ?= skyline:/var/www/onlocalhost.dev/ deploy: check rsync -rlpt --delete --checksum public/ $(DEST) clean: rm -rf public .venv: requirements.txt python3 -m venv .venv .venv/bin/pip install --quiet --upgrade pip .venv/bin/pip install --quiet -r requirements.txt touch .venv .PHONY: build serve check deploy clean