src/CCL/Makefile
author clasohm
Tue, 21 Nov 1995 12:41:52 +0100
changeset 1350 5bf4a54ba25f
parent 1293 4ade5d1d369c
child 1361 90d615b599d9
permissions -rw-r--r--
replaced exit_use by exit_use_dir for subdirectories
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1293
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
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 (CCL)			#
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
1293
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
     9
#	make
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
#To make the system and test it on standard examples, type 
1293
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    11
#	make test
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    12
#To generate HTML files for every theory, set the environment variable
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
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 FOL 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)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    25
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    26
	    Gfp.thy Gfp.ML Lfp.thy Lfp.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    28
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    29
            coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    30
            Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    31
334
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    32
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
9411dc57c56b renamed theory files
clasohm
parents: 101
diff changeset
    33
	   ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 59
diff changeset
    34
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    35
#Uses cp rather than make_database because Poly/ML allows only 3 levels
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    36
$(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)  $(CCL_FILES) 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    37
	case "$(COMP)" in \
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    38
	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
1293
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    39
                if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    40
                then echo 'open PolyML; init_html (); exit_use"ROOT";' \
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    41
                       | $(COMP) $(BIN)/CCL;\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    42
		else echo 'open PolyML; exit_use"ROOT";' | $(COMP) $(BIN)/CCL;\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    43
                fi;;\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    44
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ];\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    45
                then echo 'init_html (); exit_use"ROOT.ML";                                               xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    46
                else echo 'exit_use"ROOT.ML"; xML"$(BIN)/CCL" banner;' \
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    47
                       | $(BIN)/FOL;\
4ade5d1d369c added calls of init_html and make_chart
clasohm
parents: 996
diff changeset
    48
                fi;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 334
diff changeset
    49
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 334
diff changeset
    50
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    51
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    52
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    53
$(BIN)/FOL:
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    54
	cd ../FOL;  $(MAKE)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    55
101
d4730dd72226 Target "test" now depends on examples files
lcp
parents: 59
diff changeset
    56
test:   ex/ROOT.ML  $(BIN)/CCL  $(EX_FILES)
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    57
	case "$(COMP)" in \
1350
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1293
diff changeset
    58
	poly*)	echo 'exit_use_dir"ex"; quit();' \
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1293
diff changeset
    59
                  | $(COMP) $(BIN)/CCL ;;\
5bf4a54ba25f replaced exit_use by exit_use_dir for subdirectories
clasohm
parents: 1293
diff changeset
    60
	sml*)	echo 'exit_use_dir"ex";' | $(BIN)/CCL;;\
468
3dd1dcb509ac Improved error checking
lcp
parents: 334
diff changeset
    61
	*)	echo Bad value for ISABELLECOMP: \
3dd1dcb509ac Improved error checking
lcp
parents: 334
diff changeset
    62
                	$(COMP) is not poly or sml;;\
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    63
	esac
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    64
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    65
.PRECIOUS:  $(BIN)/FOL $(BIN)/CCL