From 93080ec67580e0f53cbb0b5b90cb93634c374ca0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 27 Oct 2024 07:38:37 -0300 Subject: Makefile: Simplify output generation of "bench" target dependencies --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3301537..86ef227 100644 --- a/Makefile +++ b/Makefile @@ -136,8 +136,7 @@ fuzz: $(fuzz-targets/main.bin-check) benchmarks/main.bin-check = $(benchmarks/main.go:.go=.bin-check) $(benchmarks/main.bin-check): - rm -f $*.txt - printf '%s\n' '$(EXEC)$*.bin' >> $*.txt + printf '%s\n' '$(EXEC)$*.bin' > $*.txt LANG=POSIX.UTF-8 time -p $(EXEC)$*.bin 2>> $*.txt printf '%s\n' '$*.txt' -- cgit v1.2.3