author | paulson |
Fri, 03 Jan 1997 15:01:55 +0100 | |
changeset 2469 | b50b8c0eec01 |
parent 2235 | 866dbb04816c |
child 2889 | a86f3b5f3cc7 |
permissions | -rw-r--r-- |
1296 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
2094 | 4 |
# Makefile for Isabelle (FOL) # |
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 IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \ |
2469 | 25 |
thy_data.ML cladata.ML \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
26 |
../Provers/hypsubst.ML ../Provers/classical.ML \ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
27 |
../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML |
0 | 28 |
|
1550
f945e3a96b35
EX_FILES includes new oracle examples, and uses the
paulson
parents:
1491
diff
changeset
|
29 |
EX_NAMES = If List Nat Nat2 Prolog declIffOracle IffOracle |
f945e3a96b35
EX_FILES includes new oracle examples, and uses the
paulson
parents:
1491
diff
changeset
|
30 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/int.ML ex/intro.ML\ |
f945e3a96b35
EX_FILES includes new oracle examples, and uses the
paulson
parents:
1491
diff
changeset
|
31 |
ex/prop.ML ex/quant.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML) |
101 | 32 |
|
0 | 33 |
$(BIN)/FOL: $(BIN)/Pure $(FILES) |
2117 | 34 |
@if [ -d $${ISABELLEBIN:?}/Pure ];\ |
2094 | 35 |
then echo Bad value for ISABELLEBIN: \ |
36 |
$(BIN) is the Isabelle source directory; \ |
|
37 |
exit 1; \ |
|
2117 | 38 |
fi |
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
39 |
@case `basename "$(COMP)"` in \ |
1296 | 40 |
poly*) echo 'make_database"$(BIN)/FOL"; quit();' \ |
41 |
| $(COMP) $(BIN)/Pure;\ |
|
2094 | 42 |
if [ "$${MAKE_HTML}" = "true" ]; \ |
43 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \ |
|
44 |
| $(COMP) $(BIN)/FOL;\ |
|
1491 | 45 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2094 | 46 |
then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/FOL;\ |
47 |
else echo 'open PolyML; exit_use_dir".";' \ |
|
48 |
| $(COMP) $(BIN)/FOL;\ |
|
49 |
fi;\ |
|
2023
aa25f20c5d8b
Calls discgarb -c to realize dramatic space savings!
paulson
parents:
1550
diff
changeset
|
50 |
discgarb -c $(BIN)/FOL;;\ |
1491 | 51 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \ |
2094 | 52 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;\ |
53 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
54 |
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/FOL" banner;' \ |
|
55 |
| $(BIN)/Pure;\ |
|
56 |
else echo 'exit_use_dir"."; xML"$(BIN)/FOL" banner;' \ |
|
57 |
| $(BIN)/Pure;\ |
|
58 |
fi;;\ |
|
409 | 59 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 60 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 61 |
esac |
62 |
||
63 |
$(BIN)/Pure: |
|
64 |
cd ../Pure; $(MAKE) |
|
65 |
||
2094 | 66 |
test: ex/ROOT.ML $(BIN)/FOL $(EX_FILES) |
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
67 |
@case `basename "$(COMP)"` in \ |
2094 | 68 |
poly*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
69 |
then echo 'make_html := true; exit_use_dir"ex"; quit();' \ |
|
70 |
| $(COMP) $(BIN)/FOL;\ |
|
71 |
else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOL;\ |
|
72 |
fi;;\ |
|
1491 | 73 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2094 | 74 |
then echo 'make_html := true; exit_use_dir"ex";' \ |
75 |
| $(BIN)/FOL;\ |
|
76 |
else echo 'exit_use_dir"ex";' | $(BIN)/FOL;\ |
|
77 |
fi;;\ |
|
409 | 78 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 79 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 80 |
esac |
81 |
||
82 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOL |