refactor: update binary name from lambda.exe to lambda
Changed BINARY_NAME from lambda.exe to lambda and updated all execution references to use the ${BINARY_NAME} variable.
Added lambda binary to .gitignore.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@
|
|||||||
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
||||||
#
|
#
|
||||||
# Binaries for programs and plugins
|
# Binaries for programs and plugins
|
||||||
|
lambda
|
||||||
*.exe
|
*.exe
|
||||||
*.exe~
|
*.exe~
|
||||||
*.dll
|
*.dll
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -1,4 +1,4 @@
|
|||||||
BINARY_NAME=lambda.exe
|
BINARY_NAME=lambda
|
||||||
TEST=simple
|
TEST=simple
|
||||||
|
|
||||||
.PHONY: help build run profile explain graph docs
|
.PHONY: help build run profile explain graph docs
|
||||||
@@ -19,13 +19,13 @@ build:
|
|||||||
@ chmod +x ${BINARY_NAME}
|
@ chmod +x ${BINARY_NAME}
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
@ ./lambda.exe - < ./samples/$(TEST).txt > program.out
|
@ ./${BINARY_NAME} - < ./samples/$(TEST).txt > program.out
|
||||||
|
|
||||||
profile: build
|
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
|
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:
|
graph:
|
||||||
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
||||||
|
|||||||
Reference in New Issue
Block a user