author | clasohm |
Tue, 24 Oct 1995 14:50:24 +0100 | |
changeset 1296 | ae31bb7774a7 |
parent 1007 | 79d316b160fa |
child 1350 | 5bf4a54ba25f |
permissions | -rw-r--r-- |
1007 | 1 |
# $Id$ |
0 | 2 |
######################################################################### |
3 |
# # |
|
4 |
# Makefile for Isabelle (FOLP) # |
|
5 |
# # |
|
6 |
######################################################################### |
|
7 |
||
8 |
#To make the system, cd to this directory and type |
|
1296 | 9 |
# make |
0 | 10 |
#To make the system and test it on standard examples, type |
1296 | 11 |
# make test |
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 |
||
19 |
#Makes pure Isabelle (Pure) if this file is ABSENT -- but not |
|
20 |
#if it is out of date, since this Makefile does not know its dependencies! |
|
21 |
||
22 |
BIN = $(ISABELLEBIN) |
|
23 |
COMP = $(ISABELLECOMP) |
|
337 | 24 |
FILES = ROOT.ML IFOLP.thy IFOLP.ML FOLP.thy FOLP.ML intprover.ML simpdata.ML\ |
1007 | 25 |
hypsubst.ML classical.ML simp.ML |
0 | 26 |
|
337 | 27 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\ |
28 |
ex/intro.ML ex/Nat.ML ex/Nat.thy ex/Prolog.ML ex/Prolog.thy\ |
|
101 | 29 |
ex/prop.ML ex/quant.ML |
30 |
||
0 | 31 |
$(BIN)/FOLP: $(BIN)/Pure $(FILES) |
32 |
case "$(COMP)" in \ |
|
33 |
poly*) echo 'make_database"$(BIN)/FOLP"; quit();' \ |
|
34 |
| $(COMP) $(BIN)/Pure;\ |
|
1296 | 35 |
if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
36 |
then echo 'open PolyML; init_html (); exit_use"ROOT";' \ |
|
37 |
| $(COMP) $(BIN)/FOLP;\ |
|
38 |
else echo 'open PolyML; exit_use"ROOT";' \ |
|
39 |
| $(COMP) $(BIN)/FOLP;\ |
|
40 |
fi;;\ |
|
41 |
sml*) if [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
42 |
then echo 'init_html (); exit_use"ROOT.ML"; xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\ |
|
43 |
else echo 'exit_use"ROOT.ML"; xML"$(BIN)/FOLP" banner;' \ |
|
44 |
| $(BIN)/Pure;\ |
|
45 |
fi;;\ |
|
468 | 46 |
*) echo Bad value for ISABELLECOMP: \ |
47 |
$(COMP) is not poly or sml;;\ |
|
0 | 48 |
esac |
49 |
||
50 |
$(BIN)/Pure: |
|
51 |
cd ../Pure; $(MAKE) |
|
52 |
||
101 | 53 |
test: ex/ROOT.ML $(BIN)/FOLP $(EX_FILES) |
0 | 54 |
case "$(COMP)" in \ |
953
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
55 |
poly*) echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/FOLP ;;\ |
17d7fad9c9a2
Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents:
468
diff
changeset
|
56 |
sml*) echo 'exit_use"ex/ROOT.ML";' | $(BIN)/FOLP;;\ |
468 | 57 |
*) echo Bad value for ISABELLECOMP: \ |
58 |
$(COMP) is not poly or sml;;\ |
|
0 | 59 |
esac |
60 |
||
61 |
.PRECIOUS: $(BIN)/Pure $(BIN)/FOLP |