author | clasohm |
Tue, 24 Oct 1995 14:42:15 +0100 | |
changeset 1293 | 4ade5d1d369c |
parent 996 | 3566c197b420 |
child 1350 | 5bf4a54ba25f |
permissions | -rw-r--r-- |
1293 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (CCL) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
1293 | 9 |
# make |
0 | 10 |
#To make the system and test it on standard examples, type |
1293 | 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) |
|
24 |
||
334 | 25 |
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \ |
26 |
Gfp.thy Gfp.ML Lfp.thy Lfp.ML |
|
0 | 27 |
|
334 | 28 |
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \ |
29 |
coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\ |
|
30 |
Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML |
|
0 | 31 |
|
334 | 32 |
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\ |
33 |
ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy |
|
101 | 34 |
|
0 | 35 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
36 |
$(BIN)/CCL: $(BIN)/FOL $(SET_FILES) $(CCL_FILES) |
|
37 |
case "$(COMP)" in \ |
|
38 |
poly*) cp $(BIN)/FOL $(BIN)/CCL;\ |
|
1293 | 39 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
40 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
41 |
| $(COMP) $(BIN)/CCL;\ |
|
42 |
else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/CCL;\ |
|
43 |
fi;;\ |
|
44 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
45 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;\ |
|
46 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/CCL" banner;' \ |
|
47 |
| $(BIN)/FOL;\ |
|
48 |
fi;;\ |
|
468 | 49 |
*) echo Bad value for ISABELLECOMP: \ |
50 |
$(COMP) is not poly or sml;;\ |
|
0 | 51 |
esac |
52 |
||
53 |
$(BIN)/FOL: |
|
54 |
cd ../FOL; $(MAKE) |
|
55 |
||
101 | 56 |
test: ex/ROOT.ML $(BIN)/CCL $(EX_FILES) |
0 | 57 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
58 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CCL ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
59 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/CCL;;\ |
468 | 60 |
*) echo Bad value for ISABELLECOMP: \ |
61 |
$(COMP) is not poly or sml;;\ |
|
0 | 62 |
esac |
63 |
||
64 |
.PRECIOUS: $(BIN)/FOL $(BIN)/CCL |