From 309748e3cbdbf36e597c2d7b4c31d2d98768d474 Mon Sep 17 00:00:00 2001 From: "M.V. Hutz" Date: Sun, 11 Jan 2026 16:50:59 -0500 Subject: [PATCH] refactor: use -o flag in Makefile targets. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7f15f78..c7a3c83 100644 --- a/Makefile +++ b/Makefile @@ -20,13 +20,13 @@ build: chmod +x ${BINARY_NAME} run: build - ./${BINARY_NAME} -f ./samples/$(TEST).txt > program.out + ./${BINARY_NAME} -f ./samples/$(TEST).txt -o program.out profile: build - ./${BINARY_NAME} -p profile/cpu.prof -f ./samples/$(TEST).txt > program.out + ./${BINARY_NAME} -p profile/cpu.prof -f ./samples/$(TEST).txt -o program.out explain: build - ./${BINARY_NAME} -x -p profile/cpu.prof -f ./samples/$(TEST).txt > program.out + ./${BINARY_NAME} -x -p profile/cpu.prof -f ./samples/$(TEST).txt -o program.out graph: go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof