fix: ensure profile directory exists before writing

Creates profile directory in profile and explain targets to prevent
errors on first run.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
M.V. Hutz
2026-01-10 16:29:09 -05:00
parent 24fdc1c17c
commit bb48d0777b

View File

@@ -22,9 +22,11 @@ run: it
@ ./lambda - < ./samples/$(TEST).txt > program.out @ ./lambda - < ./samples/$(TEST).txt > program.out
profile: it profile: it
@ mkdir -p profile
@ ./lambda -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out @ ./lambda -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
explain: it explain: it
@ mkdir -p profile
@ ./lambda -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out @ ./lambda -x -p profile/cpu.prof - < ./samples/$(TEST).txt > program.out
graph: graph: