0
|
1 |
#########################################################################
|
|
2 |
# #
|
|
3 |
# Makefile for Isabelle (Cube) #
|
|
4 |
# #
|
|
5 |
#########################################################################
|
|
6 |
|
|
7 |
#To make the system, cd to this directory and type
|
|
8 |
# make
|
|
9 |
#To make the system and test it on standard examples, type
|
|
10 |
# make test
|
|
11 |
|
|
12 |
#Environment variable ISABELLECOMP specifies the compiler.
|
|
13 |
#Environment variable ISABELLEBIN specifies the destination directory.
|
|
14 |
#For Poly/ML, ISABELLEBIN must begin with a /
|
|
15 |
#WARNING: Poly/ML databases may fail if copied or moved!
|
|
16 |
|
|
17 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not
|
|
18 |
#if it is out of date, since this Makefile does not know its dependencies!
|
|
19 |
|
|
20 |
BIN = $(ISABELLEBIN)
|
|
21 |
COMP = $(ISABELLECOMP)
|
335
|
22 |
FILES = ROOT.ML Cube.thy Cube.ML
|
0
|
23 |
|
|
24 |
$(BIN)/Cube: $(BIN)/Pure $(FILES)
|
|
25 |
case "$(COMP)" in \
|
|
26 |
poly*) echo 'make_database"$(BIN)/Cube"; quit();' \
|
|
27 |
| $(COMP) $(BIN)/Pure;\
|
|
28 |
echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/Cube ;;\
|
|
29 |
sml*) echo 'use"ROOT.ML"; xML"$(BIN)/Cube" banner;' | $(BIN)/Pure ;;\
|
468
|
30 |
*) echo Bad value for ISABELLECOMP: \
|
|
31 |
$(COMP) is not poly or sml;;\
|
0
|
32 |
esac
|
|
33 |
|
|
34 |
$(BIN)/Pure:
|
|
35 |
cd ../Pure; $(MAKE)
|
|
36 |
|
|
37 |
test: ex.ML $(BIN)/Cube
|
|
38 |
case "$(COMP)" in \
|
|
39 |
poly*) echo 'use"ex.ML"; quit();' | $(COMP) $(BIN)/Cube ;;\
|
|
40 |
sml*) echo 'use"ex.ML";' | $(BIN)/Cube;;\
|
468
|
41 |
*) echo Bad value for ISABELLECOMP: \
|
|
42 |
$(COMP) is not poly or sml;;\
|
0
|
43 |
esac
|
|
44 |
|
|
45 |
.PRECIOUS: $(BIN)/Pure $(BIN)/Cube
|