2 coqfiles := $(shell find src -name \*.v)
3 allfiles := $(coqfiles) $(shell find src -name \*.hs)
5 default: build/CoqPass.hs
7 build/CoqPass.hs: build/Makefile.coq $(allfiles)
9 # first we build with -dont-load-proofs, since that runs very quickly
10 cd build; make -f Makefile.coq OPT="-dont-load-proofs" Main.vo
12 # however the final extraction must be done without -dont-load-proofs
13 cd build; make -f Makefile.coq Extraction.vo
14 cat src/Extraction-prefix.hs build/Extraction.hs > build/CoqPass.hs
16 build/Makefile.coq: $(coqfiles)
20 cd build; ln -s ../src/*.v .
21 cd build; coq_makefile *.v > Makefile.coq