summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNadrieril2024-04-16 13:30:03 +0200
committerNadrieril2024-04-18 11:26:35 +0200
commitcfda3a990cb3b24d91ce5bf8d1ddec7b265beca5 (patch)
tree4a578bc9facb08e7948cefccce40eb7362beb6bc /Makefile
parentb4c3829305cac70827f6cbca2e90b0ef8be00d47 (diff)
Ensure we regenerate files properly in CI
Files that weren't regenerated were marked as not automatically-generated.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0299d134..dbc78f9f 100644
--- a/Makefile
+++ b/Makefile
@@ -83,7 +83,7 @@ doc:
cd compiler && dune build @doc
.PHONY: clean
-clean:
+clean: clean-generated
cd compiler && dune clean
# Test the project by translating test files to F*
@@ -99,6 +99,11 @@ test-all: test-no_nested_borrows test-paper \
test-loops \
test-arrays test-traits test-bitwise test-demo
+.PHONY: clean-generated
+clean-generated:
+ # We can't put this line in `tests/Makefile` otherwise it will detect itself :D
+ grep -lR 'THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS' tests | xargs rm
+
# Verify the F* files generated by the translation
.PHONY: verify
verify: