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 test2 test3 test6 \
14 profile-fast profile profile-coq \
15 xml-si xml-si-v3 xml xml-v3 \
16 export-coq export-matita \
17 export-lp1 export-lp2 export-tj2 export-tj3 \
20 include Makefile.common
24 MATITAC = ../../../../matita/matita/matitac.opt
26 MATITA = ../../../../matita/matita/matita.opt
28 XMLDIR = ../../www/lambdadelta
30 INPUT = examples/automath/grundlagen_2.aut
32 INPUTFAST = examples/automath/grundlagen_1.aut
36 LP1 = grundlagen_21.elpi
37 LP2 = grundlagen_22.elpi
38 TJ2 = grundlagen_22.mod
39 TJ2 = grundlagen_23.mod
41 PREAMBLE_MA = ../matita/matita.ma.templ
42 PREAMBLE_V = coq/grundlagen.template
43 PREAMBLE_LP = lp/lp.template
45 test-si-fast: $(MAIN).opt etc
46 @echo " HELENA -q -u -x -1 $(INPUTFAST)"
47 $(H)./$(MAIN).opt -T 1 -q -u -x -1 $(O) $(INPUTFAST) > etc/log.txt
49 test-si: $(MAIN).opt etc
50 @echo " HELENA -d -l -u -0 $(INPUT)"
51 $(H)./$(MAIN).opt -T 2 -d -l -u -0 $(O) $(INPUT) > etc/log.txt
53 test2: $(MAIN).opt etc
54 @echo " HELENA -T 2 -d -l $(INPUT)"
55 $(H)./$(MAIN).opt -l -u $(INPUT) -X -T 2 -d -l $(O) $(INPUT) > etc/log.txt
57 test3: $(MAIN).opt etc
58 @echo " HELENA -T 3 -d -l $(INPUT)"
59 $(H)./$(MAIN).opt -l -u $(INPUT) -X -T 3 -d -l $(O) $(INPUT) > etc/log.txt
61 test6: $(MAIN).opt etc
62 @echo " HELENA -T 6 -d -l -n $(INPUT)"
63 $(H)./$(MAIN).opt -l -u $(INPUT) -X -T 6 -d -l -n $(O) $(INPUT) > etc/log.txt
65 xml-si: $(MAIN).opt etc
66 @echo " HELENA -l -o -s 1 -u $(INPUT)"
67 $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 1 -u $(INPUT) > etc/log.txt
69 xml-si-v3: $(MAIN).opt etc
70 @echo " HELENA -l -o -s 2 -u $(INPUT)"
71 $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 2 -u $(INPUT) > etc/log.txt
74 @echo " HELENA -l -o -s 1 $(INPUT)"
75 $(H)./$(MAIN).opt -l -u $(INPUT) -X -O $(XMLDIR) -T 1 -l -o -s 1 $(INPUT) > etc/log.txt
77 xml-v3: $(MAIN).opt etc
78 @echo " HELENA -l -o -s 2 $(INPUT)"
79 $(H)./$(MAIN).opt -l -u $(INPUT) -X -O $(XMLDIR) -T 1 -l -o -s 2 $(INPUT) > etc/log.txt
81 export-coq coq/$(V): $(MAIN).opt etc
82 @echo " HELENA -l -m V8 -u $(INPUT)"
83 $(H)./$(MAIN).opt -T 1 -a n -l -m V8 -p $(PREAMBLE_V) -u $(O) $(INPUT) > etc/log.txt
85 export-matita matita/$(MA): $(MAIN).opt etc
86 @echo " HELENA -l -m MA2 -u $(INPUT)"
87 $(H)./$(MAIN).opt -T 1 -a n -l -m MA2 -p $(PREAMBLE_MA) -u $(O) $(INPUT) > etc/log.txt
89 export-lp1 lp/$(LP1): $(MAIN).opt etc
90 @echo " HELENA -l -m LP1 -u $(INPUT)"
91 $(H)./$(MAIN).opt -T 1 -a n -l -m LP1 -p $(PREAMBLE_LP) -u $(O) $(INPUT) > etc/log.txt
93 export-lp2 lp/$(LP2): $(MAIN).opt etc
94 @echo " HELENA -l -m LP2 -u $(INPUT)"
95 $(H)./$(MAIN).opt -T 1 -a n -l -m LP2 -p $(PREAMBLE_LP) -u $(O) $(INPUT) > etc/log.txt
97 export-tj2 lp/$(TJ2): $(MAIN).opt etc
98 @echo " HELENA -l -m TJ2 -u $(INPUT)"
99 $(H)./$(MAIN).opt -T 1 -a n -e 253 -l -m TJ2 -p $(PREAMBLE_LP) -u $(O) $(INPUT) > etc/log.txt
101 export-tj3 lp/$(TJ3): $(MAIN).opt etc
102 @echo " HELENA -l -m TJ3 -u $(INPUT)"
103 $(H)./$(MAIN).opt -T 1 -a n -l -m TJ3 -p $(PREAMBLE_LP) -u $(O) $(INPUT) > etc/log.txt
105 profile-fast: $(MAIN).opt etc
106 @echo " HELENA -q -u -x $(INPUTFAST) (31 TIMES)"
107 $(H)rm -f etc/log.txt
108 $(H)for T in `seq 31`; do ./$(MAIN).opt -T 1 -q -u -x $(O) $(INPUTFAST) >> etc/log.txt; done
109 $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt
111 profile: $(MAIN).opt etc
112 @echo " HELENA -l -u $(INPUT) (31 TIMES)"
113 $(H)rm -f etc/log.txt
114 $(H)for _ in `seq 31`; do ./$(MAIN).opt -T 1 -l -u $(O) $(INPUT) >> etc/log.txt; done
115 $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile.txt
117 profile-coq: $(MAIN).opt etc
118 @echo " COQC $(V) (31 TIMES)"
119 $(H)rm -f etc/log.txt
120 $(H)for _ in `seq 31`; do `which time` -p -a -u etc/log.txt $(COQC) coq/$(V); done
121 $(H)grep -h user etc/log.txt | sort | uniq > etc/profile.txt
124 @echo " MATITA $(MA)"
125 $(H)cd matita && $(MATITA) $(MA)
127 matitac: matita/$(MA)
128 @echo " MATITAC $(MA)"
129 $(H)cd matita && $(MATITAC) $(MA)
131 #profile-matita: $(MAIN).opt etc
132 # @echo " HELENA -u $(INPUT) (1 TIMES)"
133 # $(H)rm -f etc/log.txt
134 # $(H)for T in `seq 1`; do ./$(MAIN).opt -T 1 -a n -l -m $(PREAMBLE) -o -u $(INPUT) >> etc/log.txt; done
135 # $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt