X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fhelena%2FMakefile;h=5f17bc89b9cf95b890cba71dd38bb0f6e0e65c4f;hb=ae22633ad934bba5fb32143f1726cdfbd255b899;hp=ab7dc1831bd622d3195b2b2204ee7cf0ea009c67;hpb=ac97468f5422efc770316286cb807e3d3245a474;p=helm.git diff --git a/helm/software/helena/Makefile b/helm/software/helena/Makefile index ab7dc1831..5f17bc89b 100644 --- a/helm/software/helena/Makefile +++ b/helm/software/helena/Makefile @@ -10,50 +10,98 @@ KEEP = README CLEAN = etc/log.txt etc/profile.txt -TAGS = test-si test-si-fast profile xml-si xml-si-crg matita matitac +TAGS = test-si-fast test-si test \ + profile-fast profile profile-coq \ + xml-si xml-si-v3 xml xml-v3 \ + export-coq export-matita \ + matita matitac include Makefile.common -MATITAC = ../../../claudio/matita/matitac.opt +COQC = coqc -MATITA = ../../../claudio/matita/matita.opt +MATITAC = ../../../../matita/matita/matitac.opt + +MATITA = ../../../../matita/matita/matita.opt XMLDIR = ../../www/lambdadelta -INPUT = examples/grundlagen/grundlagen_2.aut +INPUT = examples/automath/grundlagen_2.aut -INPUTFAST = examples/grundlagen/grundlagen_1.aut +INPUTFAST = examples/automath/grundlagen_1.aut MA = grundlagen_2.ma +V = grundlagen_2.v -PREAMBLE = ../matita/matita.ma.templ - -test-si $(MA): $(MAIN).opt etc - @echo " HELENA -d -l -m -p -o $(INPUT)" - $(H)./$(MAIN).opt -T 2 -d -l -m $(PREAMBLE) -p -o $(O) $(INPUT) > etc/log.txt +PREAMBLE_MA = ../matita/matita.ma.templ +PREAMBLE_V = coq/grundlagen.template test-si-fast: $(MAIN).opt etc - @echo " HELENA -o -q $(INPUTFAST)" - $(H)./$(MAIN).opt -T 1 -o -q $(O) $(INPUTFAST) > etc/log.txt + @echo " HELENA -o -q -1 $(INPUTFAST)" + $(H)./$(MAIN).opt -T 1 -o -q -1 $(O) $(INPUTFAST) > etc/log.txt -profile: $(MAIN).opt etc - @echo " HELENA -o -q $(INPUTFAST) (30 TIMES)" - $(H)rm etc/log.txt - $(H)for T in `seq 30`; do ./$(MAIN).opt -T 1 -o -q $(O) $(INPUTFAST) >> etc/log.txt; done - $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt +test-si: $(MAIN).opt etc + @echo " HELENA -d -l -p -o $(INPUT)" + $(H)./$(MAIN).opt -T 2 -d -l -p -o $(O) $(INPUT) > etc/log.txt + +test: $(MAIN).opt etc + @echo " HELENA -d -l $(INPUT)" + $(H)./$(MAIN).opt -l -o $(INPUT) -X -T 2 -d -l $(INPUT) > etc/log.txt xml-si: $(MAIN).opt etc + @echo " HELENA -l -o -s 1 -x $(INPUT)" + $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 1 -x $(INPUT) > etc/log.txt + +xml-si-v3: $(MAIN).opt etc @echo " HELENA -l -o -s 2 -x $(INPUT)" $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 2 -x $(INPUT) > etc/log.txt -xml-si-crg: $(MAIN).opt etc - @echo " HELENA -l -o -s 1 -x $(INPUT)" - $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 1 -x $(INPUT) > etc/log.txt +xml: $(MAIN).opt etc + @echo " HELENA -l -s 1 -x $(INPUT)" + $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 1 -x $(INPUT) > etc/log.txt + +xml-v3: $(MAIN).opt etc + @echo " HELENA -l -s 2 -x $(INPUT)" + $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 2 -x $(INPUT) > etc/log.txt -matita: $(MA) - @echo " MATITA $<" - $(H)$(MATITA) $< +export-coq coq/$(V): $(MAIN).opt etc + $(H)mkdir -p coq + @echo " HELENA -l -m V8 -o $(INPUT)" + $(H)./$(MAIN).opt -T 1 -a n -c $(PREAMBLE_V) -l -m V8 -o $(O) $(INPUT) > etc/log.txt -matitac: $(MA) - @echo " MATITAC $<" - $(H)$(MATITAC) $< +export-matita matita/$(MA): $(MAIN).opt etc + @echo " HELENA -l -m MA2 -o $(INPUT)" + $(H)mkdir -p matita + $(H)./$(MAIN).opt -T 1 -a n -c $(PREAMBLE_MA) -l -m MA2 -o $(O) $(INPUT) > etc/log.txt + +profile-fast: $(MAIN).opt etc + @echo " HELENA -o -q $(INPUTFAST) (31 TIMES)" + $(H)rm -f etc/log.txt + $(H)for T in `seq 31`; do ./$(MAIN).opt -T 1 -o -q $(O) $(INPUTFAST) >> etc/log.txt; done + $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt + +profile: $(MAIN).opt etc + @echo " HELENA -l -o $(INPUT) (31 TIMES)" + $(H)rm -f etc/log.txt + $(H)for _ in `seq 31`; do ./$(MAIN).opt -T 1 -l -o $(O) $(INPUT) >> etc/log.txt; done + $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt + +profile-coq: $(MAIN).opt etc + @echo " COQC $(V) (31 TIMES)" + $(H)rm -f etc/log.txt + $(H)for _ in `seq 31`; do `which time` -p -a -o etc/log.txt $(COQC) coq/$(V); done + $(H)grep -h user etc/log.txt | sort | uniq > etc/profile.txt + +matita: matita/$(MA) + @echo " MATITA $(MA)" + $(H)cd matita && $(MATITA) $(MA) + +matitac: matita/$(MA) + @echo " MATITAC $(MA)" + $(H)cd matita && $(MATITAC) $(MA) + +#profile-matita: $(MAIN).opt etc +# @echo " HELENA -o $(INPUT) (1 TIMES)" +# $(H)rm -f etc/log.txt +# $(H)for T in `seq 1`; do ./$(MAIN).opt -T 1 -a n -l -m $(PREAMBLE) -o -x $(INPUT) >> etc/log.txt; done +# $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt