author | clasohm |
Tue, 21 Nov 1995 15:10:12 +0100 | |
changeset 1361 | 90d615b599d9 |
parent 1350 | 5bf4a54ba25f |
child 1491 | 38a14548baad |
permissions | -rw-r--r-- |
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;\ |
|
1296 | 35 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
1361 | 36 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \ |
1296 | 37 |
| $(COMP) $(BIN)/FOLP;\ |
1361 | 38 |
else echo 'open PolyML; exit_use_dir".";' \ |
1296 | 39 |
| $(COMP) $(BIN)/FOLP;\ |
40 |
fi;;\ |
|
41 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
1361 | 42 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\ |
43 |
else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \ |
|
1296 | 44 |
| $(BIN)/Pure;\ |
45 |
fi;;\ |
|
468 | 46 |
*) echo Bad value for ISABELLECOMP: \ |
47 |
$(COMP) is not poly or sml;;\ |
|
0 | 48 |
esac |
49 |
||
50 |
$(BIN)/Pure: |
|
51 |
cd ../Pure; $(MAKE) |
|
52 |
||
101 | 53 |
test: ex/ROOT.ML $(BIN)/FOLP $(EX_FILES) |
0 | 54 |
case "$(COMP)" in \ |
1350
5bf4a54ba25f
replaced exit_use by exit_use_dir for subdirectories
clasohm
parents:
1296
diff
changeset
|
55 |
poly*) echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP ;;\ |
5bf4a54ba25f
replaced exit_use by exit_use_dir for subdirectories
clasohm
parents:
1296
diff
changeset
|
56 |
sml*) echo 'exit_use_dir"ex";' | $(BIN)/FOLP;;\ |
468 | 57 |
*) echo Bad value for ISABELLECOMP: \ |
58 |
$(COMP) is not poly or sml;;\ |
|
0 | 59 |
esac |
60 |
||
61 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOLP |