X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=1f18b0d4f5cf1d7cd29665158cb24242aa4726b8;hb=53d4f1ce851b924cab5dc39419179a366001cbca;hp=ba1fb28e5cbf133af7484ce63cfec7456fda1232;hpb=a5cc4e8d9bbdb4b462de09a221f958bf3020895e;p=coq-hetmet.git diff --git a/Makefile b/Makefile index ba1fb28..1f18b0d 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,11 @@ allfiles := $(coqfiles) $(shell find src -name \*.hs) default: build/CoqPass.hs -build/CoqPass.hs: build/Makefile.coq $(allfiles) - - # first we build with -dont-load-proofs, since that runs very quickly - cd build; make -f Makefile.coq OPT="-dont-load-proofs" Main.vo - - # however the final extraction must be done without -dont-load-proofs +build/CoqPass.hs: $(allfiles) + make build/Makefile.coq cd build; make -f Makefile.coq Extraction.vo - cat src/Extraction-prefix.hs build/Extraction.hs > build/CoqPass.hs + cat src/Extraction-prefix.hs > build/CoqPass.hs + cat build/Extraction.hs | grep -v '^module' | grep -v '^import' >> build/CoqPass.hs build/Makefile.coq: $(coqfiles) mkdir -p build @@ -26,6 +23,14 @@ clean: # this is for Adam's use only! +push: build/CoqPass.hs + git push http://git.megacz.com/coq-hetmet.git master + git add -f build/CoqPass.hs; \ + git commit -m 'update baked-in CoqPass.hs' && \ + (git push -f http://git.megacz.com/coq-hetmet.git master:coq-extraction-baked-in; \ + git reset HEAD^) + make publish + publish: rm -rf .temp mkdir .temp @@ -49,4 +54,4 @@ publish: pdflatex $$A.tex < /dev/null; done ssh login.eecs.berkeley.edu -- 'rm public_html/coq-in-ghc/pdfs/*.pdf' ; true scp .temp/*.pdf login.eecs.berkeley.edu:public_html/coq-in-ghc/pdfs/ - rm -rf .temp \ No newline at end of file + rm -rf .temp