author | lcp |
Tue, 06 Jun 1995 10:40:01 +0200 | |
changeset 1144 | 5a62ecf80126 |
parent 953 | 17d7fad9c9a2 |
child 1297 | 7ac266cf82d0 |
permissions | -rw-r--r-- |
0 | 1 |
######################################################################### |
2 |
# # |
|
3 |
# Makefile for Isabelle (LK) # |
|
4 |
# # |
|
5 |
######################################################################### |
|
6 |
||
7 |
#To make the system, cd to this directory and type |
|
8 |
# make -f Makefile |
|
9 |
#To make the system and test it on standard examples, type |
|
10 |
# make -f Makefile 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 |
||
16 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
17 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
18 |
||
19 |
BIN = $(ISABELLEBIN) |
|
20 |
COMP = $(ISABELLECOMP) |
|
338 | 21 |
FILES = ROOT.ML LK.thy LK.ML |
102 | 22 |
EX_FILES = ex/ROOT.ML ex/hardquant.ML ex/prop.ML ex/quant.ML |
0 | 23 |
|
24 |
$(BIN)/LK: $(BIN)/Pure $(FILES) |
|
25 |
case "$(COMP)" in \ |
|
26 |
poly*) echo 'make_database"$(BIN)/LK"; quit();' \ |
|
27 |
| $(COMP) $(BIN)/Pure;\ |
|
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
28 |
echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/LK ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
29 |
sml*) echo 'exit_use"ROOT.ML"; xML"$(BIN)/LK" 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 |
||
102 | 37 |
test: ex/ROOT.ML $(BIN)/LK $(EX_FILES) |
0 | 38 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
39 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/LK ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
40 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/LK;;\ |
468 | 41 |
*) echo Bad value for ISABELLECOMP: \ |
42 |
$(COMP) is not poly or sml;;\ |
|
0 | 43 |
esac |
44 |
||
45 |
.PRECIOUS: $(BIN)/Pure $(BIN)/LK |