summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-01-06 18:54:44 +0100
committerSon Ho2022-01-06 18:54:44 +0100
commitff32d9e3f5133d469b92f17364c67fbc5b7dd13f (patch)
tree844691083cef32a34bad432d0e1c004111a542bb /Makefile
parent1d0254f555e26968badf05d605cd630c018dcaa8 (diff)
Update the Makefile to always regenerate the cfim file
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 21b77658..a5bdb4ce 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ build-run:
# of the interpreter didn't change by comparing the newly generated trace
# with a reference.
.PHONY: build-run-check-trace
-build-run-check-trace:
+build-run-check-trace: generate-cfim
dune build src/main.exe && \
dune exec src/main.exe ../charon/charon/tests/test1.cfim > tests/trace_current.txt && \
cmp tests/trace_reference.txt tests/trace_current.txt && \
@@ -17,11 +17,15 @@ build-run-check-trace:
# Build the project and update the trace
.PHONY: regen-trace
-regen-trace:
+regen-trace: generate-cfim
dune build src/main.exe && \
dune exec src/main.exe ../charon/charon/tests/test1.cfim > tests/trace_current.txt && \
rm tests/trace_reference.txt && \
mv tests/trace_current.txt tests/trace_reference.txt
+.PHONY: generate-cfim
+generate-cfim:
+ cd ../charon/charon && cargo run tests/test1.rs
+
doc:
dune build @doc