X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=Makefile;h=06d038247acaf863a0c3d01853ccdfa4de934ef1;hp=f16abc16cfe094275ca192a207cfc361b2efe8a2;hb=b3214686b18b2d6f6905394494da8d1c17587bdb;hpb=bcb16a7fa1ff772f12807c4587609fd756b7762e diff --git a/Makefile b/Makefile index f16abc1..06d0382 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ coqc := coqc -noglob -coqfiles := $(shell find src -name \*.v) -allfiles := $(coqfiles) $(shell find src -name \*.hs) +coqfiles := $(shell find src -name \*.v | grep -v \\\#) +allfiles := $(coqfiles) $(shell find src -name \*.hs | grep -v \\\#) default: build/CoqPass.hs -build/CoqPass.hs: build/Makefile.coq $(allfiles) +build/CoqPass.hs: $(allfiles) + make build/Makefile.coq cd build; make -f Makefile.coq Extraction.vo cat src/Extraction-prefix.hs > build/CoqPass.hs cat build/Extraction.hs | grep -v '^module' | grep -v '^import' >> build/CoqPass.hs @@ -22,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 @@ -45,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