]> matita.cs.unibo.it Git - helm.git/blob - helm/software/helena/Makefile
additional commit for version 0.8.2
[helm.git] / helm / software / helena / Makefile
1 MAIN = helena
2
3 SRC  = src
4
5 REQUIRES = unix str helm-ng_kernel
6
7 OCAMLOPTIONS = -rectypes 
8
9 KEEP = README
10
11 CLEAN = etc/log.txt etc/profile.txt
12
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 \
17        matita matitac
18
19 include Makefile.common
20
21 COQC = coqc
22
23 MATITAC = ../../../../matita/matita/matitac.opt
24
25 MATITA = ../../../../matita/matita/matita.opt
26
27 XMLDIR = ../../www/lambdadelta
28
29 INPUT = examples/automath/grundlagen_2.aut
30
31 INPUTFAST = examples/automath/grundlagen_1.aut
32
33 MA = grundlagen_2.ma
34 V  = grundlagen_2.v
35
36 PREAMBLE_MA = ../matita/matita.ma.templ
37 PREAMBLE_V  = coq/grundlagen.template
38
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
42
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
46
47 test: $(MAIN).opt etc
48         @echo "  HELENA -d -l $(INPUT)"
49         $(H)./$(MAIN).opt -l -o $(INPUT) -X -T 2 -d -l $(INPUT) > etc/log.txt
50
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
54
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
58
59 xml: $(MAIN).opt etc
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
62
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
66
67 export-coq coq/$(V): $(MAIN).opt etc
68         $(H)mkdir -p coq
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
71
72 export-matita matita/$(MA): $(MAIN).opt etc
73         @echo "  HELENA -l -m MA2 -o $(INPUT)"
74         $(H)mkdir -p matita
75         $(H)./$(MAIN).opt -T 1 -a n -c $(PREAMBLE_MA) -l -m MA2 -o $(O) $(INPUT) > etc/log.txt
76
77 profile-fast: $(MAIN).opt etc
78         @echo "  HELENA -o -q $(INPUTFAST) (31 TIMES)"
79         $(H)rm -f etc/log.txt
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
82
83 profile: $(MAIN).opt etc
84         @echo "  HELENA -l -o $(INPUT) (31 TIMES)"
85         $(H)rm -f etc/log.txt
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
88
89 profile-coq: $(MAIN).opt etc
90         @echo "  COQC $(V) (31 TIMES)"
91         $(H)rm -f etc/log.txt
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
94
95 matita: matita/$(MA)
96         @echo "  MATITA $(MA)"
97         $(H)cd matita && $(MATITA) $(MA)
98
99 matitac: matita/$(MA)
100         @echo "  MATITAC $(MA)"
101         $(H)cd matita && $(MATITAC) $(MA)
102
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