0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (Modal) #
|
|
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 LK 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)
|
338
|
21 |
FILES = ROOT.ML Modal0.thy prover.ML T.thy S4.thy S43.thy
|
102
|
22 |
EX_FILES = ex/ROOT.ML ex/S43thms.ML ex/S4thms.ML ex/Tthms.ML
|
0
|
23 |
|
|
24 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels
|
|
25 |
$(BIN)/Modal: $(BIN)/LK $(FILES)
|
|
26 |
case "$(COMP)" in \
|
|
27 |
poly*) cp $(BIN)/LK $(BIN)/Modal;\
|
|
28 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/Modal ;;\
|
|
29 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/Modal" banner;' | $(BIN)/LK;;\
|
|
30 |
*) echo Bad value for ISABELLECOMP;;\
|
|
31 |
esac
|
|
32 |
|
|
33 |
$(BIN)/LK:
|
|
34 |
cd ../LK; $(MAKE)
|
|
35 |
|
102
|
36 |
test: ex/ROOT.ML $(BIN)/Modal $(EX_FILES)
|
0
|
37 |
case "$(COMP)" in \
|
|
38 |
poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\
|
|
39 |
sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/Modal;;\
|
|
40 |
*) echo Bad value for ISABELLECOMP;;\
|
|
41 |
esac
|
|
42 |
|
|
43 |
.PRECIOUS: $(BIN)/LK $(BIN)/Modal
|