5621
|
1 |
#
|
|
2 |
# IsaMakefile for Tutorial
|
|
3 |
#
|
|
4 |
|
|
5 |
## targets
|
|
6 |
|
6099
|
7 |
default: HOL-ToyList HOL-Ifexpr HOL-CodeGen HOL-Datatype HOL-Recdef HOL-Misc
|
5621
|
8 |
|
|
9 |
|
|
10 |
## global settings
|
|
11 |
|
|
12 |
SRC = $(ISABELLE_HOME)/src
|
|
13 |
OUT = $(ISABELLE_OUTPUT)
|
|
14 |
LOG = $(OUT)/log
|
|
15 |
|
|
16 |
|
|
17 |
## HOL
|
|
18 |
|
|
19 |
HOL:
|
|
20 |
@cd $(SRC)/HOL; $(ISATOOL) make HOL
|
|
21 |
|
|
22 |
|
|
23 |
## HOL-Ifexpr
|
|
24 |
|
|
25 |
HOL-Ifexpr: HOL $(LOG)/HOL-Ifexpr.gz
|
|
26 |
|
|
27 |
Ifexpr/Ifexpr.thy: Ifexpr/prolog Ifexpr/boolex Ifexpr/value Ifexpr/ifex \
|
|
28 |
Ifexpr/valif Ifexpr/bool2if Ifexpr/normif Ifexpr/norm Ifexpr/normal \
|
|
29 |
Ifexpr/end
|
|
30 |
@cd Ifexpr; \
|
|
31 |
cat prolog boolex value ifex valif bool2if normif norm normal \
|
|
32 |
end > Ifexpr.thy
|
|
33 |
|
|
34 |
$(LOG)/HOL-Ifexpr.gz: $(OUT)/HOL Ifexpr/Ifexpr.thy Ifexpr/ROOT.ML
|
|
35 |
@$(ISATOOL) usedir $(OUT)/HOL Ifexpr
|
|
36 |
|
|
37 |
|
|
38 |
## HOL-ToyList
|
|
39 |
|
|
40 |
HOL-ToyList: HOL $(LOG)/HOL-ToyList.gz
|
|
41 |
|
|
42 |
ToyList/ToyList.ML: ToyList/autotac ToyList/addsimps2 ToyList/inductxs \
|
|
43 |
ToyList/lemma1 ToyList/lemma2 ToyList/lemma3 \
|
|
44 |
ToyList/qed1 ToyList/qed2 ToyList/qed3 ToyList/thm ToyList/qed
|
|
45 |
cd ToyList; \
|
|
46 |
cat lemma2 inductxs autotac qed2 addsimps2 lemma3 qed3 \
|
|
47 |
lemma1 inductxs autotac qed1 thm inductxs autotac qed > ToyList.ML
|
|
48 |
|
|
49 |
$(LOG)/HOL-ToyList.gz: $(OUT)/HOL ToyList/ToyList.thy ToyList/ToyList.ML \
|
|
50 |
ToyList/ROOT.ML
|
|
51 |
@$(ISATOOL) usedir $(OUT)/HOL ToyList
|
|
52 |
|
|
53 |
## HOL-CodeGen
|
|
54 |
|
|
55 |
HOL-CodeGen: HOL $(LOG)/HOL-CodeGen.gz
|
|
56 |
|
|
57 |
CodeGen/CodeGen.thy: CodeGen/prolog CodeGen/expr CodeGen/value \
|
|
58 |
CodeGen/instr CodeGen/exec CodeGen/comp CodeGen/end
|
|
59 |
cd CodeGen; cat prolog expr value instr exec comp end > CodeGen.thy
|
|
60 |
|
|
61 |
$(LOG)/HOL-CodeGen.gz: $(OUT)/HOL CodeGen/CodeGen.thy CodeGen/goal1.ML \
|
|
62 |
CodeGen/goal2.ML CodeGen/simpsplit.ML CodeGen/ROOT.ML
|
|
63 |
@$(ISATOOL) usedir $(OUT)/HOL CodeGen
|
|
64 |
|
5850
|
65 |
## HOL-Datatype
|
|
66 |
|
|
67 |
HOL-Datatype: HOL $(LOG)/HOL-Datatype.gz
|
|
68 |
|
|
69 |
Datatype/appmap.ML: Datatype/appmap
|
|
70 |
cat Datatype/goal Datatype/appmap Datatype/semi > Datatype/appmap.ML
|
|
71 |
|
|
72 |
Datatype/ABexp.thy: Datatype/abprolog Datatype/abdata Datatype/abconstseval \
|
|
73 |
Datatype/abevala Datatype/abevalb Datatype/abconstssubst Datatype/absubsta\
|
|
74 |
Datatype/absubstb
|
|
75 |
cd Datatype; cat abprolog abdata abconstseval abevala abevalb abconstssubst absubsta absubstb end > ABexp.thy
|
|
76 |
|
|
77 |
Datatype/Term.thy: Datatype/tprolog Datatype/mutnested Datatype/tdata \
|
|
78 |
Datatype/tconstssubst Datatype/tsubst Datatype/tsubsts
|
|
79 |
cd Datatype; cat tprolog mutnested tdata tconstssubst tsubst tsubsts end > Term.thy
|
|
80 |
|
|
81 |
Datatype/Trie.thy: Datatype/trieprolog Datatype/assoc Datatype/trie \
|
|
82 |
Datatype/triesels Datatype/lookup Datatype/update
|
|
83 |
cd Datatype; cat trieprolog assoc trie triesels lookup update end > Trie.thy
|
|
84 |
|
|
85 |
$(LOG)/HOL-Datatype.gz: $(OUT)/HOL \
|
|
86 |
Datatype/ABexp.thy Datatype/Term.thy Datatype/Trie.thy \
|
|
87 |
Datatype/ROOT.ML Datatype/abgoalind.ML Datatype/autotac.ML \
|
|
88 |
Datatype/tidproof.ML Datatype/appmap.ML Datatype/lookupempty.ML \
|
|
89 |
Datatype/trieAdds.ML Datatype/triemain.ML Datatype/trieinduct.ML Datatype/trieexhaust.ML
|
|
90 |
@$(ISATOOL) usedir $(OUT)/HOL Datatype
|
5621
|
91 |
|
6099
|
92 |
## HOL-Recdef
|
|
93 |
|
|
94 |
HOL-Recdef: HOL $(LOG)/HOL-Recdef.gz
|
|
95 |
|
|
96 |
Recdef/Examples.thy: Recdef/exprolog Recdef/fib Recdef/sep Recdef/last \
|
|
97 |
Recdef/constsgcd Recdef/gcd Recdef/ack
|
|
98 |
cd Recdef; cat exprolog fib sep last constsgcd gcd ack end > Examples.thy
|
|
99 |
|
|
100 |
Recdef/Sep1.thy: Recdef/sep1prolog Recdef/sep1
|
|
101 |
cd Recdef; cat sep1prolog sep1 end > Sep1.thy
|
|
102 |
|
|
103 |
Recdef/Sep2.thy: Recdef/sep2prolog Recdef/sep2
|
|
104 |
cd Recdef; cat sep2prolog sep2 end > Sep2.thy
|
|
105 |
|
|
106 |
$(LOG)/HOL-Recdef.gz: $(OUT)/HOL Recdef/ROOT.ML \
|
|
107 |
Recdef/Examples.thy Recdef/Sep1.thy Recdef/Sep2.thy
|
|
108 |
@$(ISATOOL) usedir $(OUT)/HOL Recdef
|
|
109 |
|
5621
|
110 |
## HOL-Misc
|
|
111 |
|
|
112 |
HOL-Misc: HOL $(LOG)/HOL-Misc.gz
|
|
113 |
|
|
114 |
Misc/Tree.thy: Misc/treeprolog Misc/tree Misc/end
|
|
115 |
cd Misc; cat treeprolog tree end > Tree.thy
|
|
116 |
|
|
117 |
Misc/NatSum.thy: Misc/natsumprolog Misc/natsum Misc/end
|
|
118 |
cd Misc; cat natsumprolog natsum end > NatSum.thy
|
|
119 |
|
|
120 |
Misc/Types.thy: Misc/typesprolog Misc/types Misc/end
|
|
121 |
cd Misc; cat typesprolog types end > Types.thy
|
|
122 |
|
|
123 |
Misc/Defs.thy: Misc/defsprolog Misc/consts Misc/defs Misc/end
|
|
124 |
cd Misc; cat defsprolog consts defs end > Defs.thy
|
|
125 |
|
|
126 |
Misc/ConstDefs.thy: Misc/constdefsprolog Misc/constdefs Misc/end
|
|
127 |
cd Misc; cat constdefsprolog constdefs end > ConstDefs.thy
|
|
128 |
|
|
129 |
$(LOG)/HOL-Misc.gz: $(OUT)/HOL Misc/ROOT.ML Misc/exhaust.ML Misc/autotac.ML \
|
|
130 |
Misc/Tree.thy Misc/NatSum.thy Misc/NatSum.ML Misc/Types.thy \
|
|
131 |
Misc/Defs.thy Misc/ConstDefs.thy \
|
|
132 |
Misc/Exor.thy Misc/exorgoal.ML Misc/exorproof.ML \
|
|
133 |
Misc/splitif.ML Misc/splitlist.ML Misc/induct_auto.ML \
|
|
134 |
Misc/Itrev.thy Misc/itrev1.ML Misc/itrev2.ML Misc/itrev3.ML
|
|
135 |
@$(ISATOOL) usedir $(OUT)/HOL Misc
|
|
136 |
|
|
137 |
|
|
138 |
## clean
|
|
139 |
|
|
140 |
clean:
|
|
141 |
@rm -f $(LOG)/HOL-Ifexpr.gz $(LOG)/HOL-Misc.gz
|