| author | paulson | 
| Wed, 06 Mar 1996 12:52:11 +0100 | |
| changeset 1552 | 6f71b5d46700 | 
| parent 1491 | 38a14548baad | 
| child 2023 | aa25f20c5d8b | 
| permissions | -rw-r--r-- | 
| 1296 | 1  | 
# $Id$  | 
| 0 | 2  | 
#########################################################################  | 
3  | 
# #  | 
|
4  | 
# Makefile for Isabelle (LCF) #  | 
|
5  | 
# #  | 
|
6  | 
#########################################################################  | 
|
7  | 
||
8  | 
#To make the system, cd to this directory and type  | 
|
9  | 
# make  | 
|
10  | 
#To make the system and test it on standard examples, type  | 
|
11  | 
# make test  | 
|
| 1296 | 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 FOL 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)  | 
|
| 338 | 24  | 
FILES = ROOT.ML LCF.thy LCF.ML simpdata.ML pair.ML fix.ML  | 
| 0 | 25  | 
|
26  | 
#Uses cp rather than make_database because Poly/ML allows only 3 levels  | 
|
27  | 
$(BIN)/LCF: $(BIN)/FOL $(FILES)  | 
|
28  | 
case "$(COMP)" in \  | 
|
29  | 
poly*) cp $(BIN)/FOL $(BIN)/LCF;\  | 
|
| 1491 | 30  | 
                if [ "$${MAKE_HTML}" = "true" ]; \
 | 
| 1361 | 31  | 
then echo 'open PolyML; make_html := true; exit_use_dir".";' \  | 
| 1296 | 32  | 
| $(COMP) $(BIN)/LCF;\  | 
| 1491 | 33  | 
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
 | 
34  | 
then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/LCF;\  | 
|
35  | 
else echo 'open PolyML; exit_use_dir".";' \  | 
|
| 1361 | 36  | 
| $(COMP) $(BIN)/LCF;\  | 
| 1296 | 37  | 
fi;;\  | 
| 1491 | 38  | 
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
 | 
| 1361 | 39  | 
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/LCF" banner;' | $(BIN)/FOL;\  | 
| 1491 | 40  | 
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
 | 
41  | 
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/LCF" banner;' \  | 
|
42  | 
| $(BIN)/FOL;\  | 
|
| 1361 | 43  | 
else echo 'exit_use_dir"."; xML"$(BIN)/LCF" banner;' \  | 
| 1296 | 44  | 
| $(BIN)/FOL;\  | 
45  | 
fi;;\  | 
|
| 468 | 46  | 
*) echo Bad value for ISABELLECOMP: \  | 
47  | 
$(COMP) is not poly or sml;;\  | 
|
| 0 | 48  | 
esac  | 
49  | 
||
50  | 
(BIN)/FOL:  | 
|
51  | 
cd ../FOL; $(MAKE)  | 
|
52  | 
||
53  | 
test: ex.ML $(BIN)/LCF  | 
|
54  | 
case "$(COMP)" in \  | 
|
| 
953
 
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
 
lcp 
parents: 
468 
diff
changeset
 | 
55  | 
poly*) echo 'exit_use"ex.ML"; quit();' | $(COMP) $(BIN)/LCF ;;\  | 
| 
 
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
 
lcp 
parents: 
468 
diff
changeset
 | 
56  | 
sml*) echo 'exit_use"ex.ML";' | $(BIN)/LCF;;\  | 
| 468 | 57  | 
*) echo Bad value for ISABELLECOMP: \  | 
58  | 
$(COMP) is not poly or sml;;\  | 
|
| 0 | 59  | 
esac  | 
60  | 
||
61  | 
.PRECIOUS: $(BIN)/FOL $(BIN)/LCF  |