summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-01-29 19:07:19 +0100
committerSon Ho2022-01-29 19:07:19 +0100
commit037529ab43deb031bd3796eb47bca28fa97979ba (patch)
tree2dbf640eaee148ce539c006e46c50288fb7d8a7d /Makefile
parent0644f6bd73334467e50429b2cbc59f781e511a17 (diff)
Update the Makefile
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: