]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/helena/Makefile
additional commit for version 0.8.2
[helm.git] / helm / software / helena / Makefile
index e35c1c85adcb15f744fd3ab19a4099a0ef317f90..5f17bc89b9cf95b890cba71dd38bb0f6e0e65c4f 100644 (file)
@@ -10,11 +10,16 @@ KEEP = README
 
 CLEAN = etc/log.txt etc/profile.txt
 
-TAGS = test-si-fast test-si test-si-matita test profile \
-       xml-si xml-si-v3 xml xml-v3 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
 
+COQC = coqc
+
 MATITAC = ../../../../matita/matita/matitac.opt
 
 MATITA = ../../../../matita/matita/matita.opt
@@ -26,8 +31,10 @@ INPUT = examples/automath/grundlagen_2.aut
 INPUTFAST = examples/automath/grundlagen_1.aut
 
 MA = grundlagen_2.ma
+V  = grundlagen_2.v
 
-PREAMBLE = ../matita/matita.ma.templ
+PREAMBLE_MA = ../matita/matita.ma.templ
+PREAMBLE_V  = coq/grundlagen.template
 
 test-si-fast: $(MAIN).opt etc
        @echo "  HELENA -o -q -1 $(INPUTFAST)"
@@ -37,20 +44,10 @@ 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-si-matita matita/$(MA): $(MAIN).opt etc
-       @echo "  HELENA -d -l -m -p -o $(INPUT)"
-       $(H)./$(MAIN).opt -T 2 -a n -d -l -m $(PREAMBLE) -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
 
-profile: $(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-new.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
@@ -67,6 +64,34 @@ 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
 
+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
+
+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)
@@ -80,4 +105,3 @@ matitac: matita/$(MA)
 #      $(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
-