src/CCL/Makefile
changeset 2117 292df12bace5
parent 2094 2061df98aab5
child 2235 866dbb04816c
equal deleted inserted replaced
2116:73bbf2cc7651 2117:292df12bace5
    32 EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
    32 EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
    33 	   ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
    33 	   ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
    34 
    34 
    35 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    35 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    36 $(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)	$(CCL_FILES) 
    36 $(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)	$(CCL_FILES) 
    37 	case "$(COMP)" in \
    37 	@case `expr "//$(COMP)" : '[^ ]*/\(.*\)'` in \
    38 	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
    38 	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
    39 		if [ "$${MAKE_HTML}" = "true" ]; \
    39 		if [ "$${MAKE_HTML}" = "true" ]; \
    40 		then echo 'open PolyML; make_html := true; exit_use_dir".";' \
    40 		then echo 'open PolyML; make_html := true; exit_use_dir".";' \
    41 		       | $(COMP) $(BIN)/CCL;\
    41 		       | $(COMP) $(BIN)/CCL;\
    42 		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    42 		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    52 		       | $(BIN)/FOL;\
    52 		       | $(BIN)/FOL;\
    53 		else echo 'exit_use_dir"."; xML"$(BIN)/CCL" banner;' \
    53 		else echo 'exit_use_dir"."; xML"$(BIN)/CCL" banner;' \
    54 		       | $(BIN)/FOL;\
    54 		       | $(BIN)/FOL;\
    55 		fi;;\
    55 		fi;;\
    56 	*)	echo Bad value for ISABELLECOMP: \
    56 	*)	echo Bad value for ISABELLECOMP: \
    57 			$(COMP) is not poly or sml;;\
    57 			\"$(COMP)\" is not poly or sml;;\
    58 	esac
    58 	esac
    59 
    59 
    60 $(BIN)/FOL:
    60 $(BIN)/FOL:
    61 	cd ../FOL;  $(MAKE)
    61 	cd ../FOL;  $(MAKE)
    62 
    62 
    63 test:	ex/ROOT.ML  $(BIN)/CCL	$(EX_FILES)
    63 test:	ex/ROOT.ML  $(BIN)/CCL	$(EX_FILES)
    64 	case "$(COMP)" in \
    64 	@case `expr "//$(COMP)" : '[^ ]*/\(.*\)'` in \
    65 	poly*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    65 	poly*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    66 		then echo 'make_html := true; exit_use_dir"ex"; quit();' \
    66 		then echo 'make_html := true; exit_use_dir"ex"; quit();' \
    67 		       | $(COMP) $(BIN)/CCL;\
    67 		       | $(COMP) $(BIN)/CCL;\
    68 		else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/CCL;\
    68 		else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/CCL;\
    69 		fi;;\
    69 		fi;;\
    71 		then echo 'make_html := true; exit_use_dir"ex";' \
    71 		then echo 'make_html := true; exit_use_dir"ex";' \
    72 		       | $(BIN)/CCL;\
    72 		       | $(BIN)/CCL;\
    73 		else echo 'exit_use_dir"ex";' | $(BIN)/CCL;\
    73 		else echo 'exit_use_dir"ex";' | $(BIN)/CCL;\
    74 		fi;;\
    74 		fi;;\
    75 	*)	echo Bad value for ISABELLECOMP: \
    75 	*)	echo Bad value for ISABELLECOMP: \
    76 			$(COMP) is not poly or sml;;\
    76 			\"$(COMP)\" is not poly or sml;;\
    77 	esac
    77 	esac
    78 
    78 
    79 .PRECIOUS:  $(BIN)/FOL $(BIN)/CCL 
    79 .PRECIOUS:  $(BIN)/FOL $(BIN)/CCL