author | clasohm |
Tue, 24 Oct 1995 14:45:35 +0100 | |
changeset 1294 | 1358dc040edb |
parent 953 | 17d7fad9c9a2 |
child 1361 | 90d615b599d9 |
permissions | -rw-r--r-- |
1294 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (CTT) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
1294 | 9 |
# make |
0 | 10 |
#To make the system and test it on standard examples, type |
1294 | 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 pure Isabelle (Pure) 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) |
|
335 | 24 |
FILES = ROOT.ML CTT.thy CTT.ML Bool.thy Bool.ML \ |
25 |
Arith.thy Arith.ML rew.ML ../Provers/typedsimp.ML |
|
0 | 26 |
|
101 | 27 |
EX_FILES = ex/ROOT.ML ex/elim.ML ex/equal.ML ex/synth.ML ex/typechk.ML |
28 |
||
0 | 29 |
$(BIN)/CTT: $(BIN)/Pure $(FILES) |
409 | 30 |
if [ -d $${ISABELLEBIN:?}/Pure ];\ |
31 |
then echo Bad value for ISABELLEBIN: \ |
|
32 |
$(BIN) is the Isabelle source directory; \ |
|
33 |
exit 1; \ |
|
34 |
fi;\ |
|
0 | 35 |
case "$(COMP)" in \ |
36 |
poly*) echo 'make_database"$(BIN)/CTT"; quit();' \ |
|
37 |
| $(COMP) $(BIN)/Pure;\ |
|
1294 | 38 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
39 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
40 |
| $(COMP) $(BIN)/CTT;\ |
|
41 |
else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/CTT;\ |
|
42 |
fi;;\ |
|
43 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
44 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/CTT" banner;' | $(BIN)/Pure;\ |
|
45 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/CTT" banner;' \ |
|
46 |
| $(BIN)/Pure;\ |
|
47 |
fi;;\ |
|
409 | 48 |
*) echo Bad value for ISABELLECOMP: \ |
49 |
$(COMP) is not poly or sml;;\ |
|
0 | 50 |
esac |
51 |
||
52 |
$(BIN)/Pure: |
|
53 |
cd ../Pure; $(MAKE) |
|
54 |
||
101 | 55 |
test: ex/ROOT.ML $(BIN)/CTT $(EX_FILES) |
0 | 56 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
409
diff
changeset
|
57 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/CTT ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
409
diff
changeset
|
58 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/CTT;;\ |
409 | 59 |
*) echo Bad value for ISABELLECOMP: \ |
60 |
$(COMP) is not poly or sml;;\ |
|
0 | 61 |
esac |
62 |
||
63 |
.PRECIOUS: $(BIN)/Pure $(BIN)/CTT |