diff options
| author | letouzey | 2001-04-19 12:15:09 +0000 |
|---|---|---|
| committer | letouzey | 2001-04-19 12:15:09 +0000 |
| commit | 1f009ebf50eb1e697698b5ca95bdbdda56cee8f9 (patch) | |
| tree | 81eccd4e1fc2cfc12fc854185e1b36c30306b62e /contrib/extraction/test/Makefile | |
| parent | ecb6f948a27b96d21fd55d4ba0d214a55b48740e (diff) | |
script de bench automatique pour extraction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1615 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/extraction/test/Makefile')
| -rw-r--r-- | contrib/extraction/test/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/contrib/extraction/test/Makefile b/contrib/extraction/test/Makefile new file mode 100644 index 0000000000..88823d6d72 --- /dev/null +++ b/contrib/extraction/test/Makefile @@ -0,0 +1,60 @@ +TOPDIR=../../.. + +INCL= -I theories/Arith \ +-I theories/Bool \ +-I theories/Init \ +-I theories/IntMap \ +-I theories/Lists \ +-I theories/Logic \ +-I theories/Reals \ +-I theories/Relations \ +-I theories/Sets \ +-I theories/Wellfounded \ +-I theories/Zarith + + +MLNAMES= +CMONAMES= + +include .names.ml +include .names.cmo + +all: allml .depend allcmo + +allml: .names.ml $(MLNAMES) + +allcmo: .names.cmo $(CMONAMES) + +.depend: Makefile + rm -f .depend; ocamldep $(INCL) theories/*/*.ml > .depend + +.names.ml: Makefile v2ml + rm -f .names.ml; \ + echo "MLNAMES= \\" > .names.ml; \ + find theories -name \*.v -exec ./v2ml \{\} \; | \ + sed -e "s/\.ml/.ml \\\\/" >> .names.ml + +.names.cmo: .names.ml + rm -f .names.cmo; \ + sed -e "1s/ML/CMO/" -e "s/\.ml/.cmo/" < .names.ml > .names.cmo + +tree: + cp -fur $(TOPDIR)/theories .; rm -f theories/*/*.vo theories/*/*/*.vo + + +%.cmo:%.ml + ocamlc $(INCL) -c -i $< + +%.ml: ml2v + ./extract `./ml2v $@` + +clean: + rm -f theories/*/*.ml theories/*/*.cm* + +ml2v: ml2v.ml + ocamlc -o $@ $< + +v2ml: v2ml.ml + ocamlc -o $@ $< + +include .depend |
