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
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 24a74e625d - Show all commits

1
.gitignore vendored
View File

@@ -3,6 +3,7 @@
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
lambda
*.exe
*.exe~
*.dll

View File

@@ -1,4 +1,4 @@
BINARY_NAME=lambda.exe
BINARY_NAME=lambda
TEST=simple
.PHONY: help build run profile explain graph docs
@@ -19,13 +19,13 @@ build:
@ chmod +x ${BINARY_NAME}
run: build
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
@ ./${BINARY_NAME} - < ./samples/$(TEST).txt > program.out
profile: build
@ ./lambda.exe -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
@ ./${BINARY_NAME} -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
explain: build
@ ./lambda.exe -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
@ ./${BINARY_NAME} -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
graph:
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof