| author | lcp |
| Thu, 06 Apr 1995 11:01:13 +0200 | |
| changeset 1003 | 6413adca7601 |
| parent 953 | 17d7fad9c9a2 |
| child 1296 | ae31bb7774a7 |
| permissions | -rw-r--r-- |
| 1003 | 1 |
# $Id$ |
| 0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (FOL) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
9 |
# make -f Makefile |
|
10 |
#To make the system and test it on standard examples, type |
|
11 |
# make -f Makefile test |
|
12 |
||
13 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
14 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
15 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
16 |
||
17 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
18 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
19 |
||
20 |
BIN = $(ISABELLEBIN) |
|
21 |
COMP = $(ISABELLECOMP) |
|
| 336 | 22 |
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
|
23 |
../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
|
24 |
../Provers/simplifier.ML ../Provers/splitter.ML ../Provers/ind.ML |
| 0 | 25 |
|
| 336 | 26 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\ |
27 |
ex/intro.ML ex/List.ML ex/List.thy ex/Nat.ML ex/Nat.thy\ |
|
28 |
ex/Nat2.ML ex/Nat2.thy ex/Prolog.ML ex/Prolog.thy ex/prop.ML\ |
|
| 101 | 29 |
ex/quant.ML |
30 |
||
| 0 | 31 |
$(BIN)/FOL: $(BIN)/Pure $(FILES) |
| 409 | 32 |
if [ -d $${ISABELLEBIN:?}/Pure ];\
|
33 |
then echo Bad value for ISABELLEBIN: \ |
|
34 |
$(BIN) is the Isabelle source directory; \ |
|
35 |
exit 1; \ |
|
36 |
fi;\ |
|
| 0 | 37 |
case "$(COMP)" in \ |
38 |
poly*) echo 'make_database"$(BIN)/FOL"; quit();' \ |
|
39 |
| $(COMP) $(BIN)/Pure;\ |
|
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
40 |
echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/FOL;;\ |
|
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
41 |
sml*) echo 'exit_use"ROOT.ML"; xML"$(BIN)/FOL" banner;' | $(BIN)/Pure;;\ |
| 409 | 42 |
*) echo Bad value for ISABELLECOMP: \ |
43 |
$(COMP) is not poly or sml;;\ |
|
| 0 | 44 |
esac |
45 |
||
46 |
$(BIN)/Pure: |
|
47 |
cd ../Pure; $(MAKE) |
|
48 |
||
| 101 | 49 |
test: ex/ROOT.ML $(BIN)/FOL $(EX_FILES) |
| 0 | 50 |
case "$(COMP)" in \ |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
940
diff
changeset
|
51 |
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
|
52 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/FOL;;\ |
| 409 | 53 |
*) echo Bad value for ISABELLECOMP: \ |
54 |
$(COMP) is not poly or sml;;\ |
|
| 0 | 55 |
esac |
56 |
||
57 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOL |