summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-29 12:23:21 -0300
committerEuAndreh <eu@euandre.org>2024-10-29 12:23:21 -0300
commit38f20569ba54a7df76ef30d3584e38b3c8a7e8f5 (patch)
tree731be065e07422e6001d602e1273ff4f6fffeade /Makefile
parentMakefile: Prioritize local version when building and linking (diff)
downloadwscat-38f20569ba54a7df76ef30d3584e38b3c8a7e8f5.tar.gz
wscat-38f20569ba54a7df76ef30d3584e38b3c8a7e8f5.tar.xz
Makefile: Simplify time file generation on bench taget dependencies
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5859786..fbec425 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'