author | paulson |
Fri, 13 Dec 1996 11:00:44 +0100 | |
changeset 2378 | fc103154ad8f |
parent 2120 | df91b1610c05 |
permissions | -rw-r--r-- |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
1 |
# $Id$ |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
2 |
# This Makefile allows the common theory for security logics to be |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
3 |
# built separately. |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
4 |
# |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
5 |
BIN = $(ISABELLEBIN) |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
6 |
COMP = $(ISABELLECOMP) |
2120 | 7 |
NAMES = Message Shared |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
8 |
|
1970
2818289768e9
Now uses DB-ROOT.ML, which is separate from ROOT.ML
paulson
parents:
1935
diff
changeset
|
9 |
FILES = DB-ROOT.ML $(NAMES:%=%.thy) $(NAMES:%=%.ML) |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
10 |
|
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
11 |
$(BIN)/Auth: $(BIN)/HOL $(FILES) |
2120 | 12 |
@if [ -d $${ISABELLEBIN:?}/Pure ];\ |
2096 | 13 |
then echo Bad value for ISABELLEBIN: \ |
14 |
$(BIN) is the Isabelle source directory; \ |
|
15 |
exit 1; \ |
|
2120 | 16 |
fi |
17 |
@case `expr "//$(COMP)" : '[^ ]*/\(.*\)'` in \ |
|
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
18 |
poly*) echo 'make_database"$(BIN)/Auth"; quit();' \ |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
19 |
| $(COMP) $(BIN)/HOL;\ |
2096 | 20 |
if [ "$${MAKE_HTML}" = "true" ]; \ |
21 |
then echo 'open PolyML; init_html(); exit_use"DB-ROOT.ML";' \ |
|
22 |
| $(COMP) $(BIN)/Auth;\ |
|
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
23 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \ |
2096 | 24 |
then echo 'open PolyML; init_html(); exit_use"DB-ROOT.ML"; make_html := false;' | $(COMP) $(BIN)/Auth;\ |
25 |
else echo 'open PolyML; exit_use"DB-ROOT.ML";' \ |
|
26 |
| $(COMP) $(BIN)/Auth;\ |
|
27 |
fi;\ |
|
2023
aa25f20c5d8b
Calls discgarb -c to realize dramatic space savings!
paulson
parents:
2016
diff
changeset
|
28 |
discgarb -c $(BIN)/Auth;;\ |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
29 |
sml*) if [ "$${MAKE_HTML}" = "true" ]; \ |
2096 | 30 |
then echo 'init_html(); exit_use"DB-ROOT.ML"; xML"$(BIN)/Auth" banner;' | $(BIN)/HOL;\ |
31 |
elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\ |
|
32 |
then echo 'init_html(); exit_use"DB-ROOT.ML"; make_html := false; xML"$(BIN)/Auth" banner;' \ |
|
33 |
| $(BIN)/HOL;\ |
|
34 |
else echo 'exit_use"DB-ROOT.ML"; xML"$(BIN)/Auth" banner;' \ |
|
35 |
| $(BIN)/HOL;\ |
|
36 |
fi;;\ |
|
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
37 |
*) echo Bad value for ISABELLECOMP: \ |
2120 | 38 |
\"$(COMP)\" is not poly or sml; exit 1;;\ |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
39 |
esac |
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
40 |
|
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
41 |
$(BIN)/HOL: |
2096 | 42 |
cd ..; $(MAKE) |
1935
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
43 |
|
ec67a0507c2a
For building the security theory as a separate database
paulson
parents:
diff
changeset
|
44 |
.PRECIOUS: $(BIN)/HOL $(BIN)/Auth |