2 coqfiles := $(shell find src -name \*.v)
3 allfiles := $(coqfiles) $(shell find src -name \*.hs)
5 default: build/CoqPass.hs
7 build/CoqPass.hs: $(allfiles)
8 make build/Makefile.coq
9 cd build; make -f Makefile.coq Extraction.vo
10 cat src/Extraction-prefix.hs > build/CoqPass.hs
11 cat build/Extraction.hs | grep -v '^module' | grep -v '^import' >> build/CoqPass.hs
13 build/Makefile.coq: $(coqfiles)
17 cd build; ln -s ../src/*.v .
18 cd build; coq_makefile *.v > Makefile.coq
25 # this is for Adam's use only!
29 cd .temp; ln -s ../src/*.v .
30 cd .temp; for A in *.v; do \
31 echo Latexing $$A ... ;\
32 echo '\\documentclass[9pt,landscape]{article}' > $$A.tex; \
33 echo '\\usepackage[landscape]{geometry}' >> $$A.tex; \
34 echo '\\usepackage[cm]{fullpage}' >> $$A.tex; \
35 echo '\\usepackage{amsmath}' >> $$A.tex; \
36 echo '\\usepackage{amssymb}' >> $$A.tex; \
37 echo '\\usepackage{stmaryrd}' >> $$A.tex; \
38 echo '\\usepackage{upgreek}' >> $$A.tex; \
39 echo '\\usepackage{parskip}' >> $$A.tex; \
40 echo '\\begin{document}' >> $$A.tex; \
41 echo '{{\\tt{' >> $$A.tex; \
43 java -jar ~/bin/unicode2tex.jar < ../src/$$A >> $$A.tex;\
44 echo '}}}' >> $$A.tex; \
45 echo '\\end{document}' >> $$A.tex; \
46 pdflatex $$A.tex < /dev/null; done
47 ssh login.eecs.berkeley.edu -- 'rm public_html/coq-in-ghc/pdfs/*.pdf' ; true
48 scp .temp/*.pdf login.eecs.berkeley.edu:public_html/coq-in-ghc/pdfs/
51 push: build/CoqPass.hs
52 git push http://git.megacz.com/coq-garrows.git master
53 git add -f build/CoqPass.hs
54 git commit -m 'update baked-in CoqPass.hs'
55 git push http://git.megacz.com/coq-garrows.git master:coq-extraction-baked-in