src/Modal/Makefile
author clasohm
Tue, 24 Oct 1995 14:50:24 +0100
changeset 1296 ae31bb7774a7
parent 953 17d7fad9c9a2
child 1361 90d615b599d9
permissions -rw-r--r--
added calls of init_html and make_chart
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
     1
# $Id$
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
# 			Makefile for Isabelle (Modal)			#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
#									#
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
#########################################################################
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
#To make the system, cd to this directory and type
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
     9
#	make
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type 
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    11
#	make test
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
#Environment variable ISABELLECOMP specifies the compiler.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
#Environment variable ISABELLEBIN specifies the destination directory.
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
#For Poly/ML, ISABELLEBIN must begin with a /
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    19
#Makes LK if this file is ABSENT -- but not 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    20
#if it is out of date, since this Makefile does not know its dependencies!
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    21
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
BIN = $(ISABELLEBIN)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
COMP = $(ISABELLECOMP)
338
e3489bc1f857 renamed theory files
clasohm
parents: 102
diff changeset
    24
FILES = ROOT.ML Modal0.thy prover.ML T.thy S4.thy S43.thy
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 60
diff changeset
    25
EX_FILES = ex/ROOT.ML ex/S43thms.ML ex/S4thms.ML ex/Tthms.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
$(BIN)/Modal:   $(BIN)/LK  $(FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    30
	poly*)	cp $(BIN)/LK $(BIN)/Modal;\
1296
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    31
                if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    32
                then echo 'open PolyML; init_html (); exit_use"ROOT";' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    33
                       | $(COMP) $(BIN)/Modal;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    34
		else echo 'open PolyML; exit_use"ROOT";' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    35
		       | $(COMP) $(BIN)/Modal;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    36
                fi;;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    37
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    38
                then echo 'init_html (); exit_use"ROOT.ML";                                               xML"$(BIN)/Modal" banner;' | $(BIN)/LK;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    39
                else echo 'exit_use"ROOT.ML"; xML"$(BIN)/Modal" banner;' \
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    40
                       | $(BIN)/LK;\
ae31bb7774a7 added calls of init_html and make_chart
clasohm
parents: 953
diff changeset
    41
                fi;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    42
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    43
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    44
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    45
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    46
$(BIN)/LK:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    47
	cd ../LK;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    48
102
e04cb6295a3f Target "test" now depends on examples files
lcp
parents: 60
diff changeset
    49
test:   ex/ROOT.ML  $(BIN)/Modal  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    50
	case "$(COMP)" in \
953
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    51
	poly*)	echo 'exit_use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\
17d7fad9c9a2 Now calls exit_use instead of use, for prompt failure if errors are detected.
lcp
parents: 468
diff changeset
    52
	sml*)	echo 'exit_use"ex/ROOT.ML";' | $(BIN)/Modal;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    53
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 338
diff changeset
    54
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    56
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
.PRECIOUS:  $(BIN)/LK $(BIN)/Modal