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 099be4ede6 - Show all commits

View File

@@ -1,20 +1,20 @@
BINARY_NAME=lambda.exe
.PHONY: it run profile explain graph docs
.PHONY: build run profile explain graph docs
it:
build:
@ go build -o ${BINARY_NAME} ./cmd/lambda
@ chmod +x ${BINARY_NAME}
TEST=simple
run: it
run: build
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
profile: it
profile: build
@ ./lambda.exe -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
explain: it
explain: build
@ ./lambda.exe -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
graph: