author | clasohm |
Tue, 24 Oct 1995 14:50:24 +0100 | |
changeset 1296 | ae31bb7774a7 |
parent 1003 | 6413adca7601 |
child 1350 | 5bf4a54ba25f |
permissions | -rw-r--r-- |
1296 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (FOL) # |
|
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) |
|
336 | 24 |
FILES = ROOT.ML IFOL.thy IFOL.ML FOL.thy FOL.ML intprover.ML simpdata.ML \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
25 |
../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
|
26 |
../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML |
0 | 27 |
|
336 | 28 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\ |
29 |
ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\ |
|
30 |
ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\ |
|
101 | 31 |
ex/quant.ML |
32 |
||
0 | 33 |
$(BIN)/FOL: $(BIN)/Pure $(FILES) |
409 | 34 |
if [ -d $${ISABELLEBIN:?}/Pure ];\ |
35 |
then echo Bad value for ISABELLEBIN: \ |
|
36 |
$(BIN) is the Isabelle source directory; \ |
|
37 |
exit 1; \ |
|
38 |
fi;\ |
|
0 | 39 |
case "$(COMP)" in \ |
1296 | 40 |
poly*) echo 'make_database"$(BIN)/FOL"; quit();' \ |
41 |
| $(COMP) $(BIN)/Pure;\ |
|
42 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
|
43 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
44 |
| $(COMP) $(BIN)/FOL;\ |
|
45 |
else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/FOL;\ |
|
46 |
fi;;\ |
|
47 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
48 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;\ |
|
49 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/FOL" banner;' \ |
|
50 |
| $(BIN)/Pure;\ |
|
51 |
fi;;\ |
|
409 | 52 |
*) echo Bad value for ISABELLECOMP: \ |
53 |
$(COMP) is not poly or sml;;\ |
|
0 | 54 |
esac |
55 |
||
56 |
$(BIN)/Pure: |
|
57 |
cd ../Pure; $(MAKE) |
|
58 |
||
101 | 59 |
test: ex/ROOT.ML $(BIN)/FOL $(EX_FILES) |
0 | 60 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
61 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOL ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
62 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/FOL;;\ |
409 | 63 |
*) echo Bad value for ISABELLECOMP: \ |
64 |
$(COMP) is not poly or sml;;\ |
|
0 | 65 |
esac |
66 |
||
67 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOL |