src/HOL/Auth/Makefile
author paulson
Fri, 13 Dec 1996 11:00:44 +0100
changeset 2378 fc103154ad8f
parent 2120 df91b1610c05
permissions -rw-r--r--
Removed needless quotation marks
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
df91b1610c05 Handles pathnames in ISABELLECOMP
paulson
parents: 2096
diff changeset
     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
df91b1610c05 Handles pathnames in ISABELLECOMP
paulson
parents: 2096
diff changeset
    12
	@if [ -d $${ISABELLEBIN:?}/Pure ];\
2096
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    13
		then echo Bad value for ISABELLEBIN: \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    14
			$(BIN) is the Isabelle source directory; \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    15
			exit 1; \
2120
df91b1610c05 Handles pathnames in ISABELLECOMP
paulson
parents: 2096
diff changeset
    16
	fi
df91b1610c05 Handles pathnames in ISABELLECOMP
paulson
parents: 2096
diff changeset
    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
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    20
		if [ "$${MAKE_HTML}" = "true" ]; \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    21
		then echo 'open PolyML; init_html(); exit_use"DB-ROOT.ML";' \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    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
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    24
		then echo 'open PolyML; init_html(); exit_use"DB-ROOT.ML";				 make_html := false;' | $(COMP) $(BIN)/Auth;\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    25
		else echo 'open PolyML; exit_use"DB-ROOT.ML";' \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    26
		       | $(COMP) $(BIN)/Auth;\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    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
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    30
		then echo 'init_html(); exit_use"DB-ROOT.ML";						 xML"$(BIN)/Auth" banner;' | $(BIN)/HOL;\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    31
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    32
		then echo 'init_html(); exit_use"DB-ROOT.ML";						 make_html := false; xML"$(BIN)/Auth" banner;' \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    33
		       | $(BIN)/HOL;\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    34
		else echo 'exit_use"DB-ROOT.ML"; xML"$(BIN)/Auth" banner;' \
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    35
		       | $(BIN)/HOL;\
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    36
		fi;;\
1935
ec67a0507c2a For building the security theory as a separate database
paulson
parents:
diff changeset
    37
	*)	echo Bad value for ISABELLECOMP: \
2120
df91b1610c05 Handles pathnames in ISABELLECOMP
paulson
parents: 2096
diff changeset
    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
76ea62f720f1 Removed extraneous spaces from all Makefiles
paulson
parents: 2091
diff changeset
    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