]> matita.cs.unibo.it Git - helm.git/blob - helm/software/helena/Makefile
lddl update with the disambiguated "grundlagen"
[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-si-matita test profile \
14        xml-si xml-si-v3 xml xml-v3 matita matitac 
15
16 include Makefile.common
17
18 MATITAC = ../../../../matita/matita/matitac.opt
19
20 MATITA = ../../../../matita/matita/matita.opt
21
22 XMLDIR = ../../www/lambdadelta
23
24 INPUT = examples/automath/grundlagen_2.aut
25
26 INPUTFAST = examples/automath/grundlagen_1.aut
27
28 MA = grundlagen_2.ma
29
30 PREAMBLE = ../matita/matita.ma.templ
31
32 test-si-fast: $(MAIN).opt etc
33         @echo "  HELENA -o -q -1 $(INPUTFAST)"
34         $(H)./$(MAIN).opt -T 1 -o -q -1 $(O) $(INPUTFAST) > etc/log.txt
35
36 test-si: $(MAIN).opt etc
37         @echo "  HELENA -d -l -p -o $(INPUT)"
38         $(H)./$(MAIN).opt -T 2 -d -l -p -o $(O) $(INPUT) > etc/log.txt
39
40 test-si-matita matita/$(MA): $(MAIN).opt etc
41         @echo "  HELENA -d -l -m -p -o $(INPUT)"
42         $(H)./$(MAIN).opt -T 2 -a n -d -l -m $(PREAMBLE) -p -o $(O) $(INPUT) > etc/log.txt
43
44 test: $(MAIN).opt etc
45         @echo "  HELENA -d -l $(INPUT)"
46         $(H)./$(MAIN).opt -l -o $(INPUT) -X -T 2 -d -l $(INPUT) > etc/log.txt
47
48 profile: $(MAIN).opt etc
49         @echo "  HELENA -o -q $(INPUTFAST) (31 TIMES)"
50         $(H)rm -f etc/log.txt
51         $(H)for T in `seq 31`; do ./$(MAIN).opt -T 1 -o -q $(O) $(INPUTFAST) >> etc/log.txt; done
52         $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt
53
54 xml-si: $(MAIN).opt etc
55         @echo "  HELENA -l -o -s 1 -x $(INPUT)"
56         $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 1 -x $(INPUT) > etc/log.txt
57
58 xml-si-v3: $(MAIN).opt etc
59         @echo "  HELENA -l -o -s 2 -x $(INPUT)"
60         $(H)./$(MAIN).opt -O $(XMLDIR) -T 1 -l -o -s 2 -x $(INPUT) > etc/log.txt
61
62 xml: $(MAIN).opt etc
63         @echo "  HELENA -l -s 1 -x $(INPUT)"
64         $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 1 -x $(INPUT) > etc/log.txt
65
66 xml-v3: $(MAIN).opt etc
67         @echo "  HELENA -l -s 2 -x $(INPUT)"
68         $(H)./$(MAIN).opt -l -o $(INPUT) -X -O $(XMLDIR) -T 1 -l -s 2 -x $(INPUT) > etc/log.txt
69
70 matita: matita/$(MA)
71         @echo "  MATITA $(MA)"
72         $(H)cd matita && $(MATITA) $(MA)
73
74 matitac: matita/$(MA)
75         @echo "  MATITAC $(MA)"
76         $(H)cd matita && $(MATITAC) $(MA)
77
78 #profile-matita: $(MAIN).opt etc
79 #       @echo "  HELENA -o $(INPUT) (1 TIMES)"
80 #       $(H)rm -f etc/log.txt
81 #       $(H)for T in `seq 1`; do ./$(MAIN).opt -T 1 -a n -l -m $(PREAMBLE) -o -x $(INPUT) >> etc/log.txt; done
82 #       $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt
83