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