From e31fb88077fcf97a20b34336b7db25d2e68b17bb Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 11 Jan 2026 16:03:28 -0500 Subject: [PATCH] feat: add help target as default Makefile goal Added a help target that displays all available Makefile targets with descriptions. Set help as the default goal so running 'make' without arguments shows usage information. --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index de2c0fa..7317dd3 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,17 @@ BINARY_NAME=lambda.exe -.PHONY: build run profile explain graph docs +.PHONY: help build run profile explain graph docs + +.DEFAULT_GOAL := help + +help: + @ echo "Available targets:" + @ echo " build - Build the lambda executable" + @ echo " run - Build and run the lambda interpreter (use TEST= to specify sample)" + @ echo " profile - Build and run with CPU profiling enabled" + @ echo " explain - Build and run with explanation mode and profiling" + @ echo " graph - Generate and open CPU profile visualization" + @ echo " docs - Start local godoc server on port 6060" build: @ go build -o ${BINARY_NAME} ./cmd/lambda