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