Handles pathnames in ISABELLECOMP
authorpaulson
Thu, 24 Oct 1996 10:30:17 +0200
changeset 2120 df91b1610c05
parent 2119 1d8ae796f3bf
child 2121 7e118eb32bdc
Handles pathnames in ISABELLECOMP
src/HOL/Auth/Makefile
--- a/src/HOL/Auth/Makefile	Mon Oct 21 11:37:21 1996 +0200
+++ b/src/HOL/Auth/Makefile	Thu Oct 24 10:30:17 1996 +0200
@@ -4,17 +4,17 @@
 #
 BIN = $(ISABELLEBIN)
 COMP = $(ISABELLECOMP)
-NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN Yahalom
+NAMES = Message Shared
 
 FILES = DB-ROOT.ML $(NAMES:%=%.thy) $(NAMES:%=%.ML)
 
 $(BIN)/Auth:   $(BIN)/HOL  $(FILES) 
-	if [ -d $${ISABELLEBIN:?}/Pure ];\
+	@if [ -d $${ISABELLEBIN:?}/Pure ];\
 		then echo Bad value for ISABELLEBIN: \
 			$(BIN) is the Isabelle source directory; \
 			exit 1; \
-		fi;\
-	case "$(COMP)" in \
+	fi
+	@case `expr "//$(COMP)" : '[^ ]*/\(.*\)'` in \
 	poly*)	echo 'make_database"$(BIN)/Auth"; quit();'  \
 		  | $(COMP) $(BIN)/HOL;\
 		if [ "$${MAKE_HTML}" = "true" ]; \
@@ -35,7 +35,7 @@
 		       | $(BIN)/HOL;\
 		fi;;\
 	*)	echo Bad value for ISABELLECOMP: \
-			$(COMP) is not poly or sml; exit 1;;\
+			\"$(COMP)\" is not poly or sml; exit 1;;\
 	esac
 
 $(BIN)/HOL: