26 lines
570 B
Makefile
26 lines
570 B
Makefile
BINARY_NAME=lambda.exe
|
|
|
|
it:
|
|
@ go build -o ${BINARY_NAME} ./cmd/lambda
|
|
@ chmod +x ${BINARY_NAME}
|
|
|
|
simple: it
|
|
@ ./lambda.exe - < ./samples/simple.txt > program.out
|
|
|
|
thunk: it
|
|
@ ./lambda.exe - < ./samples/thunk.txt > program.out
|
|
|
|
saccharine: it
|
|
@ ./lambda.exe - < ./samples/saccharine.txt > program.out
|
|
|
|
church: it
|
|
@ ./lambda.exe - < ./samples/church.txt > program.out
|
|
|
|
prof:
|
|
@ go tool pprof -top profile/cpu.prof
|
|
|
|
graph:
|
|
@ go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
|
@ go tool pprof -svg profile/cpu.prof > profile/cpu.svg
|
|
@ open profile/cpu.svg
|