author | nipkow |
Fri, 16 Sep 1994 15:48:20 +0200 | |
changeset 144 | 6254f50e5ec9 |
parent 133 | 4a2bb4fbc168 |
child 148 | 13b15899c528 |
permissions | -rw-r--r-- |
0 | 1 |
######################################################################### |
2 |
# # |
|
3 |
# Makefile for Isabelle (HOL) # |
|
4 |
# # |
|
5 |
######################################################################### |
|
6 |
||
7 |
#To make the system, cd to this directory and type |
|
8 |
# make -f Makefile |
|
9 |
#To make the system and test it on standard examples, type |
|
10 |
# make -f Makefile test |
|
11 |
||
12 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
13 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
14 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
15 |
||
16 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
17 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
18 |
||
19 |
BIN = $(ISABELLEBIN) |
|
20 |
COMP = $(ISABELLECOMP) |
|
69 | 21 |
FILES = ROOT.ML HOL.thy HOL.ML simpdata.ML Ord.thy Ord.ML \ |
119 | 22 |
Set.thy Set.ML Fun.thy Fun.ML subset.thy subset.ML \ |
23 |
equalities.thy equalities.ML \ |
|
70 | 24 |
Prod.thy Prod.ML Sum.thy Sum.ML WF.thy WF.ML \ |
119 | 25 |
mono.thy mono.ML Lfp.thy Lfp.ML Gfp.thy Gfp.ML Nat.thy Nat.ML \ |
128 | 26 |
add_ind_def.ML ind_syntax.ML indrule.ML Inductive.ML \ |
129 | 27 |
intr_elim.ML datatype.ML ../Pure/section_utils.ML\ |
128 | 28 |
Finite.ML Finite.thy\ |
78 | 29 |
Arith.thy Arith.ML Sexp.thy Sexp.ML Univ.thy Univ.ML \ |
30 |
LList.thy LList.ML List.thy List.ML \ |
|
0 | 31 |
../Provers/classical.ML ../Provers/simplifier.ML \ |
32 |
../Provers/splitter.ML ../Provers/ind.ML |
|
33 |
||
133
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
34 |
IMP_FILES = IMP/ROOT.ML IMP/Com.ML IMP/Com.thy IMP/Denotation.ML\ |
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
35 |
IMP/Denotation.thy IMP/Equiv.ML IMP/Equiv.thy |
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
36 |
|
128 | 37 |
EX_FILES = ex/ROOT.ML ex/cla.ML \ |
69 | 38 |
ex/LexProd.ML ex/LexProd.thy ex/meson.ML ex/mesontest.ML\ |
128 | 39 |
ex/MT.ML ex/MT.thy ex/Acc.ML ex/Acc.thy \ |
129 | 40 |
ex/PropLog.ML ex/PropLog.thy ex/Puzzle.ML ex/Puzzle.thy\ |
69 | 41 |
ex/Qsort.thy ex/Qsort.ML\ |
42 |
ex/Rec.ML ex/Rec.thy ex/rel.ML ex/set.ML ex/Simult.ML ex/Simult.thy\ |
|
43 |
ex/Term.ML ex/Term.thy |
|
16 | 44 |
|
69 | 45 |
SUBST_FILES = Subst/ROOT.ML Subst/AList.ML Subst/AList.thy\ |
46 |
Subst/Setplus.ML Subst/Setplus.thy\ |
|
97 | 47 |
Subst/Subst.ML Subst/Subst.thy\ |
48 |
Subst/Unifier.ML Subst/Unifier.thy\ |
|
69 | 49 |
Subst/UTerm.ML Subst/UTerm.thy\ |
50 |
Subst/UTLemmas.ML Subst/UTLemmas.thy |
|
16 | 51 |
|
0 | 52 |
$(BIN)/HOL: $(BIN)/Pure $(FILES) |
78 | 53 |
if [ -d $${ISABELLEBIN:?}/Pure ];\ |
54 |
then echo Bad value for ISABELLEBIN: \ |
|
55 |
$(BIN) is the Isabelle source directory; \ |
|
56 |
exit 1; \ |
|
57 |
fi;\ |
|
0 | 58 |
case "$(COMP)" in \ |
59 |
poly*) echo 'make_database"$(BIN)/HOL"; quit();' \ |
|
60 |
| $(COMP) $(BIN)/Pure;\ |
|
61 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/HOL ;;\ |
|
62 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/HOL" banner;' | $(BIN)/Pure ;;\ |
|
78 | 63 |
*) echo Bad value for ISABELLECOMP: \ |
64 |
$(COMP) is not poly or sml;;\ |
|
0 | 65 |
esac |
66 |
||
67 |
$(BIN)/Pure: |
|
68 |
cd ../Pure; $(MAKE) |
|
69 |
||
133
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
70 |
#Directories IMP and Subst also test the system |
97 | 71 |
#Load ex/ROOT.ML last since it creates the file "test" |
133
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
72 |
test: $(BIN)/HOL $(IMP_FILES) $(SUBST_FILES) $(EX_FILES) |
0 | 73 |
case "$(COMP)" in \ |
133
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
74 |
poly*) echo 'use"IMP/ROOT.ML"; use"Subst/ROOT.ML"; use"ex/ROOT.ML"; quit();' \ |
0 | 75 |
| $(COMP) $(BIN)/HOL ;;\ |
133
4a2bb4fbc168
Added IMP, which necessiated changes in intr_elim.tex (mk_cases).
nipkow
parents:
129
diff
changeset
|
76 |
sml*) echo 'use"IMP/ROOT.ML"; use"Subst/ROOT.ML"; use"ex/ROOT.ML";' | $(BIN)/HOL;;\ |
78 | 77 |
*) echo Bad value for ISABELLECOMP: \ |
78 |
$(COMP) is not poly or sml;;\ |
|
0 | 79 |
esac |
80 |
||
81 |
.PRECIOUS: $(BIN)/Pure $(BIN)/HOL |