diff --git a/Makefile b/Makefile index 43372be..c896863 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build run dev stop logs test migrate clean install start restart status +.PHONY: help build run dev stop logs test migrate clean install start restart status APP_NAME := esp32-web PORT := 5500 @@ -6,6 +6,32 @@ HOST := 0.0.0.0 PIDFILE := /tmp/esp32-web.pid LOGFILE := /tmp/esp32-web.log +help: + @echo "ESP32-Web Server" + @echo "" + @echo "Server:" + @echo " make start Start server ($(HOST):$(PORT))" + @echo " make stop Stop server" + @echo " make restart Restart server" + @echo " make status Show PID + uptime" + @echo " make logs Tail log file" + @echo " make dev Run with debug mode" + @echo "" + @echo "Database:" + @echo " make migrate Apply migrations" + @echo " make migrate-init Initialize migrations" + @echo " make migrate-create msg=x Create migration" + @echo "" + @echo "Development:" + @echo " make install Install with dev dependencies" + @echo " make test Run tests" + @echo " make clean Remove cache files" + @echo "" + @echo "Container:" + @echo " make build Build image" + @echo " make container-run Run container" + @echo " make container-stop Stop container" + install: pip install -e ".[dev]"