feat: Add make help target

This commit is contained in:
user
2026-02-05 21:07:44 +01:00
parent e6e7b622b2
commit 162048720c

View File

@@ -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]"