author | wenzelm |
Thu, 20 Mar 1997 10:48:00 +0100 | |
changeset 2818 | b47926f28b21 |
parent 2235 | 866dbb04816c |
permissions | -rw-r--r-- |
1296 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
2094 | 4 |
# Makefile for Isabelle (Cube) # |
0 | 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 |
#WARNING: Poly/ML databases may fail if copied or moved! |
|
19 |
||
20 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
21 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
22 |
||
23 |
BIN = $(ISABELLEBIN) |
|
24 |
COMP = $(ISABELLECOMP) |
|
2094 | 25 |
FILES = ROOT.ML Cube.thy Cube.ML |
0 | 26 |
|
27 |
$(BIN)/Cube: $(BIN)/Pure $(FILES) |
|
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
28 |
@case `basename "$(COMP)"` in \ |
0 | 29 |
poly*) echo 'make_database"$(BIN)/Cube"; quit();' \ |
30 |
| $(COMP) $(BIN)/Pure;\ |
|
2094 | 31 |
if [ "$${MAKE_HTML}" = "true" ]; \ |
32 |
then echo 'open PolyML; make_html := true; exit_use_dir".";' \ |
|
33 |
| $(COMP) $(BIN)/Cube;\ |
|
1491 | 34 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2094 | 35 |
then echo 'open PolyML; make_html := true; exit_use_dir"."; make_html := false;' | $(COMP) $(BIN)/Cube;\ |
36 |
else echo 'open PolyML; exit_use_dir".";' \ |
|
1296 | 37 |
| $(COMP) $(BIN)/Cube;\ |
2094 | 38 |
fi;\ |
2023
aa25f20c5d8b
Calls discgarb -c to realize dramatic space savings!
paulson
parents:
1491
diff
changeset
|
39 |
discgarb -c $(BIN)/Cube;;\ |
1491 | 40 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \ |
2094 | 41 |
then echo 'make_html := true; exit_use_dir"."; xML"$(BIN)/Cube" banner;' | $(BIN)/Pure;\ |
42 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
43 |
then echo 'make_html := true; exit_use_dir"."; make_html := false; xML"$(BIN)/Cube" banner;' \ |
|
44 |
| $(BIN)/Pure;\ |
|
45 |
else echo 'exit_use_dir"."; xML"$(BIN)/Cube" banner;' \ |
|
46 |
| $(BIN)/Pure;\ |
|
47 |
fi;;\ |
|
468 | 48 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 49 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 50 |
esac |
51 |
||
52 |
$(BIN)/Pure: |
|
53 |
cd ../Pure; $(MAKE) |
|
54 |
||
2818 | 55 |
test: ex/ROOT.ML ex/ex.ML $(BIN)/Cube |
2235
866dbb04816c
Makefile improvements by Thomas Santen and Stephan Herrmann
paulson
parents:
2117
diff
changeset
|
56 |
@case `basename "$(COMP)"` in \ |
2818 | 57 |
poly*) echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/Cube ;;\ |
58 |
sml*) echo 'exit_use_dir"ex";' | $(BIN)/Cube;;\ |
|
468 | 59 |
*) echo Bad value for ISABELLECOMP: \ |
2117 | 60 |
\"$(COMP)\" is not poly or sml;;\ |
0 | 61 |
esac |
62 |
||
2094 | 63 |
.PRECIOUS: $(BIN)/Pure $(BIN)/Cube |