summaryrefslogtreecommitdiff
path: root/tests/coq/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-11-16 15:34:27 +0100
committerSon HO2022-11-16 15:45:32 +0100
commitbbdd0da25b974b03d58489d3bbc2654f4f774644 (patch)
treed95f882effb9e0a576ab396f7741c2f4a42dc0c9 /tests/coq/Makefile
parent08530a51b8861e3dbb1a409d0c6f0e8c44adec83 (diff)
Add a nix derivation for the Coq proofs
Diffstat (limited to 'tests/coq/Makefile')
-rw-r--r--tests/coq/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/coq/Makefile b/tests/coq/Makefile
index 8dee394b..c2b9e379 100644
--- a/tests/coq/Makefile
+++ b/tests/coq/Makefile
@@ -29,8 +29,10 @@ gen-coq-project-%:
rm -f $*/_CoqProject
echo "# This file was automatically generated - see ../Makefile" >> $*/_CoqProject
cat _CoqProject.template >> $*/_CoqProject
- echo $(patsubst $*/%,"\n"%,$(wildcard $*/*.v)) >> $*/_CoqProject
- sed -i -z "s/ \n/\n/g" $*/_CoqProject
+ echo $(wildcard $*/*.v) >> $*/_CoqProject # List the .v files
+ sed -i -z "s/"$*"\//\n/g" $*/_CoqProject # Insert breaks
+ sed -i -z "s/ \n/\n/g" $*/_CoqProject # Remove whitespaces at the end of lines
+ cat $*/_CoqProject
.PHONY: clean-%
clean-%: