For building the security theory as a separate database
authorpaulson
Thu, 22 Aug 1996 12:18:21 +0200
changeset 1935 ec67a0507c2a
parent 1934 58573e7041b4
child 1936 979e8b4f5fa5
For building the security theory as a separate database
src/HOL/Auth/Makefile
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/HOL/Auth/Makefile	Thu Aug 22 12:18:21 1996 +0200
@@ -0,0 +1,43 @@
+# $Id$
+# This Makefile allows the common theory for security logics to be
+#	built separately.
+#
+BIN = $(ISABELLEBIN)
+COMP = $(ISABELLECOMP)
+NAMES = Message Shared
+
+FILES = ROOT.ML $(NAMES:%=%.thy) $(NAMES:%=%.ML)
+
+$(BIN)/Auth:   $(BIN)/HOL  $(FILES) 
+	if [ -d $${ISABELLEBIN:?}/Pure ];\
+           	then echo Bad value for ISABELLEBIN: \
+                	$(BIN) is the Isabelle source directory; \
+                	exit 1; \
+           	fi;\
+	case "$(COMP)" in \
+	poly*)	echo 'make_database"$(BIN)/Auth"; quit();'  \
+		  | $(COMP) $(BIN)/HOL;\
+                if [ "$${MAKE_HTML}" = "true" ]; \
+                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
+                       | $(COMP) $(BIN)/Auth;\
+		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
+                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/Auth;\
+                else echo 'open PolyML; exit_use_dir".";' \
+                       | $(COMP) $(BIN)/Auth;\
+                fi;;\
+	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
+                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/Auth" banner;' | $(BIN)/HOL;\
+                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
+                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/Auth" banner;' \
+                       | $(BIN)/HOL;\
+                else echo 'exit_use_dir"."; xML"$(BIN)/Auth" banner;' \
+                       | $(BIN)/HOL;\
+                fi;;\
+	*)	echo Bad value for ISABELLECOMP: \
+                	$(COMP) is not poly or sml; exit 1;;\
+	esac
+
+$(BIN)/HOL:
+	cd ..;  $(MAKE)
+
+.PRECIOUS:  $(BIN)/HOL $(BIN)/Auth