src/FOLP/Makefile
author paulson
Fri Feb 16 18:00:47 1996 +0100 (1996-02-16)
changeset 1512 ce37c64244c0
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.
lcp@1007
     1
#  $Id$
clasohm@0
     2
#########################################################################
clasohm@0
     3
#									#
clasohm@0
     4
# 			Makefile for Isabelle (FOLP)			#
clasohm@0
     5
#									#
clasohm@0
     6
#########################################################################
clasohm@0
     7
clasohm@0
     8
#To make the system, cd to this directory and type  
clasohm@1296
     9
#	make
clasohm@0
    10
#To make the system and test it on standard examples, type  
clasohm@1296
    11
#	make test
clasohm@1296
    12
#To generate HTML files for every theory, set the environment variable
clasohm@1296
    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 pure Isabelle (Pure) 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@337
    24
FILES =  ROOT.ML IFOLP.thy IFOLP.ML FOLP.thy FOLP.ML intprover.ML simpdata.ML\
lcp@1007
    25
	 hypsubst.ML classical.ML simp.ML 
clasohm@0
    26
clasohm@337
    27
EX_FILES = ex/ROOT.ML ex/cla.ML ex/foundn.ML ex/If.ML ex/If.thy ex/int.ML\
clasohm@337
    28
	   ex/intro.ML ex/Nat.ML ex/Nat.thy ex/Prolog.ML ex/Prolog.thy\
lcp@101
    29
	   ex/prop.ML ex/quant.ML
lcp@101
    30
clasohm@0
    31
$(BIN)/FOLP:   $(BIN)/Pure  $(FILES) 
clasohm@0
    32
	case "$(COMP)" in \
clasohm@0
    33
	poly*)	echo 'make_database"$(BIN)/FOLP"; quit();'  \
clasohm@0
    34
			| $(COMP) $(BIN)/Pure;\
clasohm@1491
    35
                if [ "$${MAKE_HTML}" = "true" ]; \
clasohm@1361
    36
                then echo 'open PolyML; make_html := true; exit_use_dir".";' \
clasohm@1296
    37
                       | $(COMP) $(BIN)/FOLP;\
clasohm@1491
    38
		elif [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    39
                then echo 'open PolyML; make_html := true; exit_use_dir".";                               make_html := false;' | $(COMP) $(BIN)/FOLP;\
clasohm@1491
    40
                else echo 'open PolyML; exit_use_dir".";' \
clasohm@1296
    41
		       | $(COMP) $(BIN)/FOLP;\
clasohm@1296
    42
                fi;;\
clasohm@1491
    43
	sml*)	if [ "$${MAKE_HTML}" = "true" ]; \
clasohm@1361
    44
                then echo 'make_html := true; exit_use_dir".";                                            xML"$(BIN)/FOLP" banner;' | $(BIN)/Pure;\
clasohm@1491
    45
                elif [ "$${MAKE_HTML-undefined}" != "undefined" ];\
clasohm@1491
    46
                then echo 'make_html := true; exit_use_dir".";                                            make_html := false; xML"$(BIN)/FOLP" banner;' \
clasohm@1491
    47
                       | $(BIN)/Pure;\
clasohm@1361
    48
                else echo 'exit_use_dir"."; xML"$(BIN)/FOLP" banner;' \
clasohm@1296
    49
                       | $(BIN)/Pure;\
clasohm@1296
    50
                fi;;\
lcp@468
    51
	*)	echo Bad value for ISABELLECOMP: \
lcp@468
    52
                	$(COMP) is not poly or sml;;\
clasohm@0
    53
	esac
clasohm@0
    54
clasohm@0
    55
$(BIN)/Pure:
clasohm@0
    56
	cd ../Pure;  $(MAKE)
clasohm@0
    57
lcp@101
    58
test:   ex/ROOT.ML  $(BIN)/FOLP  $(EX_FILES) 
clasohm@0
    59
	case "$(COMP)" in \
clasohm@1491
    60
	poly*)  if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    61
                then echo 'make_html := true; exit_use_dir"ex"; quit();' \
clasohm@1491
    62
                       | $(COMP) $(BIN)/FOLP;\
clasohm@1491
    63
                else echo 'exit_use_dir"ex"; quit();' | $(COMP) $(BIN)/FOLP;\
clasohm@1491
    64
                fi;;\
clasohm@1491
    65
	sml*)	if [ "$${MAKE_HTML-undefined}" != "undefined" ]; \
clasohm@1491
    66
                then echo 'make_html := true; exit_use_dir"ex";' \
clasohm@1491
    67
                       | $(BIN)/FOLP;\
clasohm@1491
    68
                else echo 'exit_use_dir"ex";' | $(BIN)/FOLP;\
clasohm@1491
    69
                fi;;\
lcp@468
    70
	*)	echo Bad value for ISABELLECOMP: \
lcp@468
    71
                	$(COMP) is not poly or sml;;\
clasohm@0
    72
	esac
clasohm@0
    73
clasohm@0
    74
.PRECIOUS:   $(BIN)/Pure  $(BIN)/FOLP