summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 12:14:21 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 12:14:21 -0300
commitf8ba907f97bfc1c9f858dd23c904e35da247b834 (patch)
tree0b5eda47eced6a24fd8bb0e1013c316ff73f01be
parentMakefile: Prioritize local version when building and linking (diff)
downloadglaze-f8ba907f97bfc1c9f858dd23c904e35da247b834.tar.gz
glaze-f8ba907f97bfc1c9f858dd23c904e35da247b834.tar.xz
Makefile: Simplify time file generation on bench taget dependencies
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 87c7a69..c8032e8 100644
--- a/Makefile
+++ b/Makefile
@@ -130,8 +130,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'