0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (FOL) #
|
|
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)
|
336
|
21 |
FILES = ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \
|
0
|
22 |
../Provers/classical.ML ../Provers/simplifier.ML ../Provers/ind.ML
|
|
23 |
|
336
|
24 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
|
|
25 |
ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\
|
|
26 |
ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\
|
101
|
27 |
ex/quant.ML
|
|
28 |
|
0
|
29 |
$(BIN)/FOL: $(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)/FOL"; quit();' \
|
|
37 |
| $(COMP) $(BIN)/Pure;\
|
|
38 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/FOL;;\
|
|
39 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\
|
409
|
40 |
*) echo Bad value for ISABELLECOMP: \
|
|
41 |
$(COMP) is not poly or sml;;\
|
0
|
42 |
esac
|
|
43 |
|
|
44 |
$(BIN)/Pure:
|
|
45 |
cd ../Pure; $(MAKE)
|
|
46 |
|
101
|
47 |
test: ex/ROOT.ML $(BIN)/FOL $(EX_FILES)
|
0
|
48 |
case "$(COMP)" in \
|
|
49 |
poly*) echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\
|
|
50 |
sml*) echo 'use"ex/ROOT.ML";' | $(BIN)/FOL;;\
|
409
|
51 |
*) echo Bad value for ISABELLECOMP: \
|
|
52 |
$(COMP) is not poly or sml;;\
|
0
|
53 |
esac
|
|
54 |
|
|
55 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOL
|