src/Modal/Makefile
author clasohm
Sat Feb 10 19:04:21 1996 +0100 (1996-02-10)
changeset 1491 38a14548baad
parent 1361 90d615b599d9
child 2023 aa25f20c5d8b
permissions -rw-r--r--
make_html now only remains set if MAKE_HTML=true
     1 # $Id$
     2 #########################################################################
     3 #									#
     4 # 			Makefile for Isabelle (Modal)			#
     5 #									#
     6 #########################################################################
     7 
     8 #To make the system, cd to this directory and type
     9 #	make
    10 #To make the system and test it on standard examples, type 
    11 #	make test
    12 #To generate HTML files for every theory, set the environment variable
    13 #MAKE_HTML or add the parameter "MAKE_HTML=".
    14 
    15 #Environment variable ISABELLECOMP specifies the compiler.
    16 #Environment variable ISABELLEBIN specifies the destination directory.
    17 #For Poly/ML, ISABELLEBIN must begin with a /
    18 
    19 #Makes LK if this file is ABSENT -- but not 
    20 #if it is out of date, since this Makefile does not know its dependencies!
    21 
    22 BIN = $(ISABELLEBIN)
    23 COMP = $(ISABELLECOMP)
    24 FILES = ROOT.ML Modal0.thy prover.ML T.thy S4.thy S43.thy
    25 EX_FILES = ex/ROOT.ML ex/S43thms.ML ex/S4thms.ML ex/Tthms.ML
    26 
    27 #Uses cp rather than make_database because Poly/ML allows only 3 levels
    28 $(BIN)/Modal:   $(BIN)/LK  $(FILES) 
    29 	case "$(COMP)" in \
    30 	poly*)	cp $(BIN)/LK $(BIN)/Modal;\
    31                 if [ "$${MAKE_HTML}" = "true" ]; \
    32                 then echo 'open PolyML; make_html := true; exit_use_dir".";' \
    33                        | $(COMP) $(BIN)/Modal;\
    34 		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
    35                 then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/Modal;\
    36                 else echo 'open PolyML; exit_use_dir".";' \
    37 		       | $(COMP) $(BIN)/Modal;\
    38                 fi;;\
    39 	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
    40                 then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/Modal" banner;' | $(BIN)/LK;\
    41                 elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
    42                 then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/Modal" banner;' \
    43                        | $(BIN)/LK;\
    44                 else echo 'exit_use_dir"."; xML"$(BIN)/Modal" banner;' \
    45                        | $(BIN)/LK;\
    46                 fi;;\
    47 	*)	echo Bad value for ISABELLECOMP: \
    48                 	$(COMP) is not poly or sml;;\
    49 	esac
    50 
    51 $(BIN)/LK:
    52 	cd ../LK;  $(MAKE)
    53 
    54 test:   ex/ROOT.ML  $(BIN)/Modal  $(EX_FILES)
    55 	case "$(COMP)" in \
    56 	poly*)	echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\
    57 	sml*)	echo 'exit_use"ex/ROOT.ML";' | $(BIN)/Modal;;\
    58 	*)	echo Bad value for ISABELLECOMP: \
    59                 	$(COMP) is not poly or sml;;\
    60 	esac
    61 
    62 .PRECIOUS:  $(BIN)/LK $(BIN)/Modal