author | paulson |
Wed, 27 Nov 1996 10:31:05 +0100 | |
changeset 2235 | 866dbb04816c |
parent 2117 | 292df12bace5 |
permissions | -rw-r--r-- |
1007 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
2094 | 4 |
# Makefile for Isabelle (FOLP) # |
0 | 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) |
|
2094 | 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) |
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
32 |
@case `basename "$(COMP)"` in \ |
0 | 33 |
poly*) echo 'make_database"$(BIN)/FOLP"; quit();' \ |
34 |
| $(COMP) $(BIN)/Pure;\ |
|
2094 | 35 |
if [ "$${MAKE_HTML}" = "true" ]; \ |
36 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \ |
|
37 |
| $(COMP) $(BIN)/FOLP;\ |
|
1491 | 38 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2094 | 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;\ |
2094 | 42 |
fi;\ |
2023
aa25f20c5d8b
Calls discgarb -c to realize dramatic space savings!
paulson
parents:
1491
diff
changeset
|
43 |
discgarb -c $(BIN)/FOLP;;\ |
1491 | 44 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \ |
2094 | 45 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\ |
46 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
47 |
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/FOLP" banner;' \ |
|
48 |
| $(BIN)/Pure;\ |
|
49 |
else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \ |
|
50 |
| $(BIN)/Pure;\ |
|
51 |
fi;;\ |
|
468 | 52 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 53 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 54 |
esac |
55 |
||
56 |
$(BIN)/Pure: |
|
57 |
cd ../Pure; $(MAKE) |
|
58 |
||
2094 | 59 |
test: ex/ROOT.ML $(BIN)/FOLP $(EX_FILES) |
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
60 |
@case `basename "$(COMP)"` in \ |
2094 | 61 |
poly*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
62 |
then echo 'make_html := true; exit_use_dir"ex"; quit();' \ |
|
63 |
| $(COMP) $(BIN)/FOLP;\ |
|
64 |
else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP;\ |
|
65 |
fi;;\ |
|
1491 | 66 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2094 | 67 |
then echo 'make_html := true; exit_use_dir"ex";' \ |
68 |
| $(BIN)/FOLP;\ |
|
69 |
else echo 'exit_use_dir"ex";' | $(BIN)/FOLP;\ |
|
70 |
fi;;\ |
|
468 | 71 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 72 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 73 |
esac |
74 |
||
75 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOLP |