1007
|
1 |
# $Id$
|
0
|
2 |
#########################################################################
|
|
3 |
# #
|
|
4 |
# Makefile for Isabelle (FOLP) #
|
|
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 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)
|
337
|
24 |
FILES = ROOT.ML IFOLP.thy IFOLP.ML FOLP.thy FOLP.ML intprover.ML simpdata.ML\
|
1007
|
25 |
hypsubst.ML classical.ML simp.ML
|
0
|
26 |
|
337
|
27 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
|
|
28 |
ex/intro.ML ex/Nat.ML ex/Nat.thy ex/Prolog.ML ex/Prolog.thy\
|
101
|
29 |
ex/prop.ML ex/quant.ML
|
|
30 |
|
0
|
31 |
$(BIN)/FOLP: $(BIN)/Pure $(FILES)
|
|
32 |
case "$(COMP)" in \
|
|
33 |
poly*) echo 'make_database"$(BIN)/FOLP"; quit();' \
|
|
34 |
| $(COMP) $(BIN)/Pure;\
|
1491
|
35 |
if [ "$${MAKE_HTML}" = "true" ]; \
|
1361
|
36 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \
|
1296
|
37 |
| $(COMP) $(BIN)/FOLP;\
|
1491
|
38 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
|
|
39 |
then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/FOLP;\
|
|
40 |
else echo 'open PolyML; exit_use_dir".";' \
|
1296
|
41 |
| $(COMP) $(BIN)/FOLP;\
|
|
42 |
fi;;\
|
1491
|
43 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \
|
1361
|
44 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\
|
1491
|
45 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
|
|
46 |
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/FOLP" banner;' \
|
|
47 |
| $(BIN)/Pure;\
|
1361
|
48 |
else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \
|
1296
|
49 |
| $(BIN)/Pure;\
|
|
50 |
fi;;\
|
468
|
51 |
*) echo Bad value for ISABELLECOMP: \
|
|
52 |
$(COMP) is not poly or sml;;\
|
0
|
53 |
esac
|
|
54 |
|
|
55 |
$(BIN)/Pure:
|
|
56 |
cd ../Pure; $(MAKE)
|
|
57 |
|
101
|
58 |
test: ex/ROOT.ML $(BIN)/FOLP $(EX_FILES)
|
0
|
59 |
case "$(COMP)" in \
|
1491
|
60 |
poly*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
|
|
61 |
then echo 'make_html := true; exit_use_dir"ex"; quit();' \
|
|
62 |
| $(COMP) $(BIN)/FOLP;\
|
|
63 |
else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP;\
|
|
64 |
fi;;\
|
|
65 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
|
|
66 |
then echo 'make_html := true; exit_use_dir"ex";' \
|
|
67 |
| $(BIN)/FOLP;\
|
|
68 |
else echo 'exit_use_dir"ex";' | $(BIN)/FOLP;\
|
|
69 |
fi;;\
|
468
|
70 |
*) echo Bad value for ISABELLECOMP: \
|
|
71 |
$(COMP) is not poly or sml;;\
|
0
|
72 |
esac
|
|
73 |
|
|
74 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOLP
|