author | paulson |
Mon, 21 Oct 1996 11:18:34 +0200 | |
changeset 2117 | 292df12bace5 |
parent 2094 | 2061df98aab5 |
child 2195 | e8271379ba4b |
permissions | -rw-r--r-- |
1012 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
2094 | 4 |
# Makefile for Isabelle (Pure) # |
0 | 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\ |
|
1527 | 25 |
sequence.ML envir.ML pattern.ML unify.ML logic.ML theory.ML thm.ML\ |
1594 | 26 |
net.ML display.ML deriv.ML drule.ML tctical.ML search.ML tactic.ML\ |
2094 | 27 |
goals.ML axclass.ML install_pp.ML\ |
28 |
NJ093.ML NJ1xx.ML ../Provers/simplifier.ML |
|
0 | 29 |
|
2094 | 30 |
SYNTAX_FILES = Syntax/ROOT.ML Syntax/ast.ML Syntax/lexicon.ML\ |
566 | 31 |
Syntax/parser.ML Syntax/type_ext.ML Syntax/syn_trans.ML\ |
57 | 32 |
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
|
33 |
Syntax/syn_ext.ML Syntax/mixfix.ML |
0 | 34 |
|
415
e5470bf81350
added axclass.ML, Syntax/mixfix.ML, Thy/thy_syn.ML;
wenzelm
parents:
408
diff
changeset
|
35 |
THY_FILES = Thy/ROOT.ML Thy/thy_scan.ML Thy/thy_parse.ML\ |
1140 | 36 |
Thy/thy_syn.ML Thy/thy_read.ML Thy/thm_database.ML |
0 | 37 |
|
38 |
#Uses cp rather than make_database because Poly/ML allows only 3 levels |
|
2094 | 39 |
$(BIN)/Pure: $(FILES) $(SYNTAX_FILES) $(THY_FILES) $(ML_DBASE) |
2117 | 40 |
@case `expr "//$(COMP)" : '[^ ]*/\(.*\)'` in \ |
0 | 41 |
poly*) echo database=$${ML_DBASE:?'No Poly/ML database specified'};\ |
42 |
cp $(ML_DBASE) $(BIN)/Pure; chmod u+w $(BIN)/Pure;\ |
|
1480 | 43 |
echo 'PolyML.use"POLY";use"ROOT" handle _=> exit 1;' \ |
2094 | 44 |
| $(COMP) $(BIN)/Pure;\ |
2023
aa25f20c5d8b
Calls discgarb -c to realize dramatic space savings!
paulson
parents:
1671
diff
changeset
|
45 |
discgarb -c $(BIN)/Pure;;\ |
0 | 46 |
sml*) if [ ! '(' -d $${ISABELLEBIN:?} -a -w $${ISABELLEBIN:?} ')' ];\ |
2094 | 47 |
then echo Bad value for ISABELLEBIN: \ |
48 |
$(BIN) is not a writable directory; \ |
|
49 |
exit 1; \ |
|
50 |
fi;\ |
|
51 |
echo 'use"NJ.ML"; use"ROOT.ML" handle _=> exit 1; xML"$(BIN)/Pure" banner;' | $(COMP);;\ |
|
408 | 52 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 53 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 54 |
esac |
55 |
||
1671 | 56 |
|
57 |
test: $(BIN)/Pure |
|
58 |
||
2094 | 59 |
.PRECIOUS: $(BIN)/Pure |