refactor: improve Makefile structure and usability #11

Merged
mvhutz merged 7 commits from refactor/rename-it-to-build into main 2026-01-11 21:13:42 +00:00
Showing only changes of commit e31fb88077 - Show all commits

View File

@@ -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=<name> 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