author | paulson |
Fri, 14 Jun 1996 12:32:08 +0200 | |
changeset 1803 | ff4cb897dfd3 |
parent 1733 | 89dd6ca7ee6c |
child 2023 | aa25f20c5d8b |
permissions | -rw-r--r-- |
1296 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (ZF) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
1296 | 9 |
# make |
0 | 10 |
#To make the system and test it on standard examples, type |
1296 | 11 |
# make test |
12 |
#To generate HTML files for every theory, set the environment variable |
|
13 |
#MAKE_HTML or add the parameter "MAKE_HTML=". |
|
0 | 14 |
|
15 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
16 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
17 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
18 |
||
19 |
#Makes FOL if this file is ABSENT -- but not |
|
20 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
21 |
||
22 |
BIN = $(ISABELLEBIN) |
|
23 |
COMP = $(ISABELLECOMP) |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
24 |
NAMES = ZF upair subset pair domrange \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
25 |
func AC simpdata equalities Bool \ |
1733 | 26 |
Sum QPair mono Fixedpt ind_syntax cartprod add_ind_def \ |
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
27 |
constructor intr_elim indrule Inductive Perm Rel EquivClass Trancl \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
28 |
WF Order Ordinal Epsilon Arith Univ \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
29 |
QUniv Datatype OrderArith OrderType \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
30 |
Cardinal CardinalArith Cardinal_AC InfDatatype \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
31 |
Zorn Nat Finite List |
0 | 32 |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
33 |
FILES = ROOT.ML thy_syntax.ML ../Pure/section_utils.ML \ |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
34 |
$(NAMES:%=%.thy) $(NAMES:%=%.ML) |
102 | 35 |
|
0 | 36 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
37 |
$(BIN)/ZF: $(BIN)/FOL $(FILES) |
|
38 |
case "$(COMP)" in \ |
|
39 |
poly*) cp $(BIN)/FOL $(BIN)/ZF;\ |
|
1491 | 40 |
if [ "$${MAKE_HTML}" = "true" ]; \ |
1361 | 41 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \ |
1296 | 42 |
| $(COMP) $(BIN)/ZF;\ |
1491 | 43 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
44 |
then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/ZF;\ |
|
45 |
else echo 'open PolyML; exit_use_dir".";' \ |
|
46 |
| $(COMP) $(BIN)/ZF;\ |
|
1296 | 47 |
fi;;\ |
1491 | 48 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \ |
1361 | 49 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/ZF" banner;' | $(BIN)/FOL;\ |
1491 | 50 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
51 |
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/ZF" banner;' \ |
|
52 |
| $(BIN)/FOL;\ |
|
1361 | 53 |
else echo 'exit_use_dir"."; xML"$(BIN)/ZF" banner;' \ |
1296 | 54 |
| $(BIN)/FOL;\ |
55 |
fi;;\ |
|
435 | 56 |
*) echo Bad value for ISABELLECOMP: \ |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
57 |
$(COMP) is not poly or sml; exit 1;;\ |
0 | 58 |
esac |
59 |
||
60 |
$(BIN)/FOL: |
|
61 |
cd ../FOL; $(MAKE) |
|
62 |
||
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
63 |
#### Testing of ZF |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
64 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
65 |
#A macro referring to the object-logic (depends on ML compiler) |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
66 |
LOGIC:sh=case $ISABELLECOMP in \ |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
67 |
poly*) echo "$ISABELLECOMP $ISABELLEBIN/ZF" ;;\ |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
68 |
sml*) echo "$ISABELLEBIN/ZF" ;;\ |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
69 |
*) echo "echo Bad value for ISABELLECOMP: \ |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
70 |
$ISABELLEBIN is not poly or sml; exit 1" ;;\ |
0 | 71 |
esac |
72 |
||
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
73 |
##IMP-semantics example |
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
74 |
IMP_NAMES = Com Denotation Equiv |
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
75 |
IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML) |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
76 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
77 |
IMP: $(BIN)/ZF $(IMP_FILES) |
1491 | 78 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
79 |
then echo 'make_html := true; exit_use_dir"IMP";quit();' | $(LOGIC); \ |
|
80 |
else echo 'exit_use_dir"IMP";quit();' | $(LOGIC); \ |
|
81 |
fi |
|
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
82 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
83 |
##Coinduction example |
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
84 |
COIND_NAMES = ECR Language MT Map Static Types Values |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
85 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
86 |
COIND_FILES = Coind/ROOT.ML Coind/BCR.thy Coind/Dynamic.thy \ |
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
87 |
$(COIND_NAMES:%=Coind/%.thy) $(COIND_NAMES:%=Coind/%.ML) |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
88 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
89 |
Coind: $(BIN)/ZF $(COIND_FILES) |
1491 | 90 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
91 |
then echo 'make_html := true; exit_use_dir"Coind";quit();' | $(LOGIC);\ |
|
92 |
else echo 'exit_use_dir"Coind";quit();' | $(LOGIC); \ |
|
93 |
fi |
|
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
94 |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
95 |
##AC examples |
1199 | 96 |
AC_NAMES = AC_Equiv OrdQuant Transrec2 Cardinal_aux \ |
97 |
AC15_WO6 AC16_WO4 AC16_lemmas AC17_AC1 AC18_AC19 AC1_WO2 \ |
|
98 |
DC DC_lemmas HH Hartog WO1_AC \ |
|
99 |
WO2_AC16 WO6_WO1 WO_AC first recfunAC16 rel_is_fun |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
100 |
|
1199 | 101 |
AC_FILES = AC/ROOT.ML AC/AC0_AC1.ML AC/AC10_AC15.ML AC/AC1_AC17.ML \ |
102 |
AC/AC2_AC6.ML AC/AC7_AC9.ML \ |
|
103 |
AC/WO1_WO6.ML AC/WO1_WO7.ML AC/WO1_WO8.ML \ |
|
104 |
$(AC_NAMES:%=AC/%.thy) $(AC_NAMES:%=AC/%.ML) |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
105 |
|
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
106 |
AC: $(BIN)/ZF $(AC_FILES) |
1491 | 107 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
108 |
then echo 'make_html := true; exit_use_dir"AC";quit();' | $(LOGIC); \ |
|
109 |
else echo 'exit_use_dir"AC";quit();' | $(LOGIC); \ |
|
110 |
fi |
|
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
111 |
|
1059 | 112 |
##Residuals example |
113 |
||
114 |
RESID_NAMES = Confluence Redex SubUnion Conversion Reduction Substitution \ |
|
115 |
Cube Residuals Terms |
|
116 |
||
117 |
RESID_FILES = Resid/ROOT.ML $(RESID_NAMES:%=Resid/%.thy) \ |
|
118 |
$(RESID_NAMES:%=Resid/%.ML) |
|
119 |
||
120 |
Resid: $(BIN)/ZF $(RESID_FILES) |
|
1491 | 121 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
122 |
then echo 'make_html := true; exit_use_dir"Resid";quit();' | $(LOGIC);\ |
|
123 |
else echo 'exit_use_dir"Resid";quit();' | $(LOGIC); \ |
|
124 |
fi |
|
1059 | 125 |
|
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
126 |
##Miscellaneous examples |
1803 | 127 |
EX_NAMES = Primes Ramsey Limit Integ twos_compl Bin BT Term TF Ntree Brouwer \ |
1607 | 128 |
Data Enum Rmap Mutil PropLog ListN Acc Comb Primrec LList CoUnit |
993
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
129 |
|
eab3015d97f0
Simplified using pattern replacements. Added the AC example.
lcp
parents:
956
diff
changeset
|
130 |
EX_FILES = ex/ROOT.ML ex/misc.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML) |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
131 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
132 |
#Test ZF by loading the examples in directory ex |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
133 |
ex: $(BIN)/ZF $(EX_FILES) |
1491 | 134 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
135 |
then echo 'make_html := true; exit_use_dir"ex";quit();' | $(LOGIC); \ |
|
136 |
else echo 'exit_use_dir"ex";quit();' | $(LOGIC); \ |
|
137 |
fi |
|
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
138 |
|
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
139 |
#Full test. |
1059 | 140 |
test: $(BIN)/ZF IMP Coind AC Resid ex |
917
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
141 |
echo 'Test examples ran successfully' > test |
bd26f536e1fe
Re-organised to perform the tests independently. Now test
lcp
parents:
798
diff
changeset
|
142 |
|
0 | 143 |
.PRECIOUS: $(BIN)/FOL $(BIN)/ZF |