From 24fdc1c17c442211b2cf04014b0265bd15bd8f32 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sat, 10 Jan 2026 16:28:48 -0500 Subject: [PATCH] feat: add help target to document available commands Adds help target that displays all available Make targets and their descriptions, improving discoverability. Co-Authored-By: Claude Sonnet 4.5 --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b4c19b0..736991d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,17 @@ BINARY_NAME=lambda -.PHONY: it run profile explain graph clean +.PHONY: help it run profile explain graph clean + +help: + @ echo "Available targets:" + @ echo " it - Build the lambda binary" + @ echo " run - Build and run with sample input (default: simple.txt)" + @ echo " profile - Build and run with CPU profiling enabled" + @ echo " explain - Run with explanation mode and profiling" + @ echo " graph - Generate CPU profile visualization" + @ echo " clean - Remove build artifacts" + @ echo "" + @ echo "Usage: make run TEST=" it: @ go build -o ${BINARY_NAME} ./cmd/lambda