| author | clasohm |
| Tue, 24 Oct 1995 14:50:24 +0100 | |
| changeset 1296 | ae31bb7774a7 |
| parent 953 | 17d7fad9c9a2 |
| child 1361 | 90d615b599d9 |
| permissions | -rw-r--r-- |
| 1296 | 1 |
# $Id$ |
| 0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (Modal) # |
|
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 LK 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) |
|
| 338 | 24 |
FILES = ROOT.ML Modal0.thy prover.ML T.thy S4.thy S43.thy |
| 102 | 25 |
EX_FILES = ex/ROOT.ML ex/S43thms.ML ex/S4thms.ML ex/Tthms.ML |
| 0 | 26 |
|
27 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
|
28 |
$(BIN)/Modal: $(BIN)/LK $(FILES) |
|
29 |
case "$(COMP)" in \ |
|
30 |
poly*) cp $(BIN)/LK $(BIN)/Modal;\ |
|
| 1296 | 31 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
|
32 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
33 |
| $(COMP) $(BIN)/Modal;\ |
|
34 |
else echo 'open PolyML; exit_use"ROOT";' \ |
|
35 |
| $(COMP) $(BIN)/Modal;\ |
|
36 |
fi;;\ |
|
37 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
|
|
38 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/Modal" banner;' | $(BIN)/LK;\ |
|
39 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/Modal" banner;' \ |
|
40 |
| $(BIN)/LK;\ |
|
41 |
fi;;\ |
|
| 468 | 42 |
*) echo Bad value for ISABELLECOMP: \ |
43 |
$(COMP) is not poly or sml;;\ |
|
| 0 | 44 |
esac |
45 |
||
46 |
$(BIN)/LK: |
|
47 |
cd ../LK; $(MAKE) |
|
48 |
||
| 102 | 49 |
test: ex/ROOT.ML $(BIN)/Modal $(EX_FILES) |
| 0 | 50 |
case "$(COMP)" in \ |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
51 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\ |
|
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
52 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/Modal;;\ |
| 468 | 53 |
*) echo Bad value for ISABELLECOMP: \ |
54 |
$(COMP) is not poly or sml;;\ |
|
| 0 | 55 |
esac |
56 |
||
57 |
.PRECIOUS: $(BIN)/LK $(BIN)/Modal |