Files
lambda/Makefile
2026-01-18 18:27:48 -05:00

33 lines
709 B
Makefile

BINARY_NAME=lambda
.PHONY: help build docs test bench clean
.DEFAULT_GOAL := help
.SILENT:
help:
echo "Available targets:"
echo " build - Build the lambda executable"
echo " docs - Start local godoc server on port 6060"
echo " test - Run tests"
echo " bench - Run benchmarks"
echo " clean - Remove all build artifacts"
build:
go build -o ${BINARY_NAME} ./cmd/lambda
chmod +x ${BINARY_NAME}
docs:
echo ">>> View at 'http://localhost:6060/pkg/git.maximhutz.com/max/lambda/'"
go run golang.org/x/tools/cmd/godoc@latest -http=:6060
test:
go test -v ./...
bench:
go test -bench=. -benchtime=10x -cpu=4 ./...
clean:
rm -f ${BINARY_NAME}
rm -f program.out
rm -rf profile/