5 REQUIRES = unix str helm-ng_kernel
7 OCAMLOPTIONS = -rectypes
11 CLEAN = etc/log.txt etc/profile.txt
13 TAGS = test-si-fast test-si test \
14 profile-fast profile profile-coq \
15 xml-si xml-si-v3 xml xml-v3 \
16 export-coq export-matita \
19 include Makefile.common
23 MATITAC = ../../../../matita/matita/matitac.opt
25 MATITA = ../../../../matita/matita/matita.opt
27 XMLDIR = ../../www/lambdadelta
29 INPUT = examples/automath/grundlagen_2.aut
31 INPUTFAST = examples/automath/grundlagen_1.aut
36 PREAMBLE_MA = ../matita/matita.ma.templ
37 PREAMBLE_V = coq/grundlagen.template
39 test-si-fast: $(MAIN).opt etc
40 @echo " HELENA -o -q -1 $(INPUTFAST)"
41 $(H)./$(MAIN).opt -T 1 -o -q -1 $(O) $(INPUTFAST) > etc/log.txt
43 test-si: $(MAIN).opt etc
44 @echo " HELENA -d -l -p -o $(INPUT)"
45 $(H)./$(MAIN).opt -T 2 -d -l -p -o $(O) $(INPUT) > etc/log.txt
48 @echo " HELENA -d -l $(INPUT)"
49 $(H)./$(MAIN).opt -l -o $(INPUT) -X -T 2 -d -l $(INPUT) > etc/log.txt
51 xml-si: $(MAIN).opt etc
52 @echo " HELENA -l -o -s 1 -x $(INPUT)"
53 $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 1 -x $(INPUT) > etc/log.txt
55 xml-si-v3: $(MAIN).opt etc
56 @echo " HELENA -l -o -s 2 -x $(INPUT)"
57 $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 2 -x $(INPUT) > etc/log.txt
60 @echo " HELENA -l -s 1 -x $(INPUT)"
61 $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 1 -x $(INPUT) > etc/log.txt
63 xml-v3: $(MAIN).opt etc
64 @echo " HELENA -l -s 2 -x $(INPUT)"
65 $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 2 -x $(INPUT) > etc/log.txt
67 export-coq coq/$(V): $(MAIN).opt etc
69 @echo " HELENA -l -m V8 -o $(INPUT)"
70 $(H)./$(MAIN).opt -T 1 -a n -c $(PREAMBLE_V) -l -m V8 -o $(O) $(INPUT) > etc/log.txt
72 export-matita matita/$(MA): $(MAIN).opt etc
73 @echo " HELENA -l -m MA2 -o $(INPUT)"
75 $(H)./$(MAIN).opt -T 1 -a n -c $(PREAMBLE_MA) -l -m MA2 -o $(O) $(INPUT) > etc/log.txt
77 profile-fast: $(MAIN).opt etc
78 @echo " HELENA -o -q $(INPUTFAST) (31 TIMES)"
80 $(H)for T in `seq 31`; do ./$(MAIN).opt -T 1 -o -q $(O) $(INPUTFAST) >> etc/log.txt; done
81 $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt
83 profile: $(MAIN).opt etc
84 @echo " HELENA -l -o $(INPUT) (31 TIMES)"
86 $(H)for _ in `seq 31`; do ./$(MAIN).opt -T 1 -l -o $(O) $(INPUT) >> etc/log.txt; done
87 $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt
89 profile-coq: $(MAIN).opt etc
90 @echo " COQC $(V) (31 TIMES)"
92 $(H)for _ in `seq 31`; do `which time` -p -a -o etc/log.txt $(COQC) coq/$(V); done
93 $(H)grep -h user etc/log.txt | sort | uniq > etc/profile.txt
97 $(H)cd matita && $(MATITA) $(MA)
100 @echo " MATITAC $(MA)"
101 $(H)cd matita && $(MATITAC) $(MA)
103 #profile-matita: $(MAIN).opt etc
104 # @echo " HELENA -o $(INPUT) (1 TIMES)"
105 # $(H)rm -f etc/log.txt
106 # $(H)for T in `seq 1`; do ./$(MAIN).opt -T 1 -a n -l -m $(PREAMBLE) -o -x $(INPUT) >> etc/log.txt; done
107 # $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt