src/CCL/Makefile
author paulson
Fri Feb 16 17:24:51 1996 +0100 (1996-02-16)
changeset 1511 09354d37a5ab
parent 1491 38a14548baad
child 2023 aa25f20c5d8b
permissions -rw-r--r--
Elimination of fully-functorial style.
Type tactic changed to a type abbrevation (from a datatype).
Constructor tactic and function apply deleted.
clasohm@1293
     1
# $Id$
clasohm@0
     2
#########################################################################
clasohm@0
     3
#									#
clasohm@0
     4
# 			Makefile for Isabelle (CCL)			#
clasohm@0
     5
#									#
clasohm@0
     6
#########################################################################
clasohm@0
     7
clasohm@0
     8
#To make the system, cd to this directory and type
clasohm@1293
     9
#	make
clasohm@0
    10
#To make the system and test it on standard examples, type 
clasohm@1293
    11
#	make test
clasohm@1293
    12
#To generate HTML files for every theory, set the environment variable
clasohm@1293
    13
#MAKE_HTML or add the parameter "MAKE_HTML=".
clasohm@0
    14
clasohm@0
    15
#Environment variable ISABELLECOMP specifies the compiler.
clasohm@0
    16
#Environment variable ISABELLEBIN specifies the destination directory.
clasohm@0
    17
#For Poly/ML, ISABELLEBIN must begin with a /
clasohm@0
    18
clasohm@0
    19
#Makes FOL if this file is ABSENT -- but not 
clasohm@0
    20
#if it is out of date, since this Makefile does not know its dependencies!
clasohm@0
    21
clasohm@0
    22
BIN = $(ISABELLEBIN)
clasohm@0
    23
COMP = $(ISABELLECOMP)
clasohm@0
    24
clasohm@334
    25
SET_FILES = ROOT.ML Set.thy Set.ML subset.ML equalities.ML mono.ML \
clasohm@334
    26
	    Gfp.thy Gfp.ML Lfp.thy Lfp.ML
clasohm@0
    27
clasohm@334
    28
CCL_FILES = CCL.thy CCL.ML Term.thy Term.ML Type.thy Type.ML \
clasohm@334
    29
            coinduction.ML Hered.thy Hered.ML Trancl.thy Trancl.ML\
clasohm@334
    30
            Wfd.thy Wfd.ML genrec.ML typecheck.ML eval.ML Fix.thy Fix.ML
clasohm@0
    31
clasohm@334
    32
EX_FILES = ex/ROOT.ML ex/Flag.ML ex/Flag.thy ex/List.ML ex/List.thy\
clasohm@334
    33
	   ex/Nat.ML ex/Nat.thy ex/Stream.ML ex/Stream.thy
lcp@101
    34
clasohm@0
    35
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    36
$(BIN)/CCL:   $(BIN)/FOL  $(SET_FILES)  $(CCL_FILES) 
clasohm@0
    37
	case "$(COMP)" in \
clasohm@0
    38
	poly*)	cp $(BIN)/FOL $(BIN)/CCL;\
clasohm@1491
    39
                if [ "$${MAKE_HTML}" = "true" ]; \
clasohm@1361
    40
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
clasohm@1293
    41
                       | $(COMP) $(BIN)/CCL;\
clasohm@1491
    42
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    43
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/CCL;\
clasohm@1491
    44
                else echo 'open PolyML; exit_use_dir".";' \
clasohm@1361
    45
                       | $(COMP) $(BIN)/CCL;\
clasohm@1293
    46
                fi;;\
clasohm@1491
    47
	sml*)   if [ "$${MAKE_HTML}" = "true" ]; \
clasohm@1361
    48
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/CCL" banner;' | $(BIN)/FOL;\
clasohm@1491
    49
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
clasohm@1491
    50
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/CCL" banner;' \
clasohm@1491
    51
                       | $(BIN)/FOL;\
clasohm@1361
    52
                else echo 'exit_use_dir"."; xML"$(BIN)/CCL" banner;' \
clasohm@1293
    53
                       | $(BIN)/FOL;\
clasohm@1293
    54
                fi;;\
lcp@468
    55
	*)	echo Bad value for ISABELLECOMP: \
lcp@468
    56
                	$(COMP) is not poly or sml;;\
clasohm@0
    57
	esac
clasohm@0
    58
clasohm@0
    59
$(BIN)/FOL:
clasohm@0
    60
	cd ../FOL;  $(MAKE)
clasohm@0
    61
lcp@101
    62
test:   ex/ROOT.ML  $(BIN)/CCL  $(EX_FILES)
clasohm@0
    63
	case "$(COMP)" in \
clasohm@1491
    64
	poly*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    65
                then echo 'make_html := true; exit_use_dir"ex"; quit();' \
clasohm@1491
    66
                       | $(COMP) $(BIN)/CCL;\
clasohm@1491
    67
                else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/CCL;\
clasohm@1491
    68
                fi;;\
clasohm@1491
    69
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    70
                then echo 'make_html := true; exit_use_dir"ex";' \
clasohm@1491
    71
                       | $(BIN)/CCL;\
clasohm@1491
    72
                else echo 'exit_use_dir"ex";' | $(BIN)/CCL;\
clasohm@1491
    73
                fi;;\
lcp@468
    74
	*)	echo Bad value for ISABELLECOMP: \
lcp@468
    75
                	$(COMP) is not poly or sml;;\
clasohm@0
    76
	esac
clasohm@0
    77
clasohm@0
    78
.PRECIOUS:  $(BIN)/FOL $(BIN)/CCL