author | lcp |
Fri, 28 Apr 1995 11:24:32 +0200 | |
changeset 1074 | d60f203eeddf |
parent 1012 | db0563a1644a |
child 1140 | 0a804a71274a |
permissions | -rw-r--r-- |
1012 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (Pure) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#The pure part is common to all systems. |
|
9 |
#Object-logics (like FOL) are loaded on top of it. |
|
10 |
||
11 |
#To make the system, cd to this directory and type |
|
12 |
# make -f Makefile |
|
13 |
||
14 |
#Environment variable ML_DBASE specifies the initial Poly/ML database, from |
|
15 |
# the Poly/ML distribution directory. |
|
16 |
#WARNING: Poly/ML parent databases should not be moved! |
|
17 |
||
18 |
#Environment variable ISABELLECOMP specifies the compiler. |
|
19 |
#Environment variable ISABELLEBIN specifies the destination directory. |
|
20 |
#For Poly/ML, ISABELLEBIN must begin with a / |
|
21 |
||
22 |
BIN = $(ISABELLEBIN) |
|
23 |
COMP = $(ISABELLECOMP) |
|
24 |
FILES = POLY.ML NJ.ML ROOT.ML library.ML term.ML symtab.ML type.ML sign.ML\ |
|
25 |
sequence.ML envir.ML pattern.ML unify.ML logic.ML thm.ML net.ML\ |
|
415
e5470bf81350
added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents:
408
diff
changeset
|
26 |
drule.ML tctical.ML tactic.ML goals.ML axclass.ML install_pp.ML |
0 | 27 |
|
241 | 28 |
SYNTAX_FILES = Syntax/ROOT.ML Syntax/ast.ML Syntax/lexicon.ML\ |
566 | 29 |
Syntax/parser.ML Syntax/type_ext.ML Syntax/syn_trans.ML\ |
57 | 30 |
Syntax/pretty.ML Syntax/printer.ML Syntax/syntax.ML\ |
415
e5470bf81350
added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents:
408
diff
changeset
|
31 |
Syntax/syn_ext.ML Syntax/mixfix.ML |
0 | 32 |
|
415
e5470bf81350
added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents:
408
diff
changeset
|
33 |
THY_FILES = Thy/ROOT.ML Thy/thy_scan.ML Thy/thy_parse.ML\ |
e5470bf81350
added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents:
408
diff
changeset
|
34 |
Thy/thy_syn.ML Thy/thy_read.ML |
0 | 35 |
|
36 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
|
37 |
$(BIN)/Pure: $(FILES) $(SYNTAX_FILES) $(THY_FILES) $(ML_DBASE) |
|
38 |
case "$(COMP)" in \ |
|
39 |
poly*) echo database=$${ML_DBASE:?'No Poly/ML database specified'};\ |
|
40 |
cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\ |
|
954
d3f734f66141
Now the "use" call has an exception handler, for prompt failure
lcp
parents:
566
diff
changeset
|
41 |
echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' | $(COMP) $(BIN)/Pure;;\ |
0 | 42 |
sml*) if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\ |
408 | 43 |
then echo Bad value for ISABELLEBIN: \ |
0 | 44 |
$(BIN) is not a writable directory; \ |
45 |
exit 1; \ |
|
46 |
fi;\ |
|
954
d3f734f66141
Now the "use" call has an exception handler, for prompt failure
lcp
parents:
566
diff
changeset
|
47 |
echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1; xML"$(BIN)/Pure" banner;'\ |
0 | 48 |
| $(COMP);;\ |
408 | 49 |
*) echo Bad value for ISABELLECOMP: \ |
50 |
$(COMP) is not poly or sml;;\ |
|
0 | 51 |
esac |
52 |
||
53 |
.PRECIOUS: $(BIN)/Pure |