summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a9b24400..3227e0eb 100644
--- a/Makefile
+++ b/Makefile
@@ -17,16 +17,15 @@ build-run:
build-run-check-trace: generate-cfim
dune build src/main.exe && \
dune exec src/main.exe $(CFIM_TEST_FILE) > tests/trace_current.txt && \
- cmp tests/trace_reference.txt tests/trace_current.txt && \
- rm tests/trace_current.txt
+ cmp tests/trace_reference.txt tests/trace_current.txt
# Build the project and update the trace
.PHONY: regen-trace
regen-trace: generate-cfim
dune build src/main.exe && \
dune exec src/main.exe $(CFIM_TEST_FILE) > tests/trace_current.txt && \
- rm tests/trace_reference.txt && \
- mv tests/trace_current.txt tests/trace_reference.txt
+ rm -f tests/trace_reference.txt && \
+ cp tests/trace_current.txt tests/trace_reference.txt
.PHONY: generate-cfim
generate-cfim: