src/Modal/Makefile
author clasohm
Thu Sep 16 12:20:38 1993 +0200 (1993-09-16)
changeset 0 a5a9c433f639
child 60 379872528c16
permissions -rw-r--r--
Initial revision
clasohm@0
     1
#########################################################################
clasohm@0
     2
#									#
clasohm@0
     3
# 			Makefile for Isabelle (Modal)			#
clasohm@0
     4
#									#
clasohm@0
     5
#########################################################################
clasohm@0
     6
clasohm@0
     7
#To make the system, cd to this directory and type
clasohm@0
     8
#	make -f Makefile 
clasohm@0
     9
#To make the system and test it on standard examples, type 
clasohm@0
    10
#	make -f Makefile test
clasohm@0
    11
clasohm@0
    12
#Environment variable ISABELLECOMP specifies the compiler.
clasohm@0
    13
#Environment variable ISABELLEBIN specifies the destination directory.
clasohm@0
    14
#For Poly/ML, ISABELLEBIN must begin with a /
clasohm@0
    15
clasohm@0
    16
#Makes LK if this file is ABSENT -- but not 
clasohm@0
    17
#if it is out of date, since this Makefile does not know its dependencies!
clasohm@0
    18
clasohm@0
    19
BIN = $(ISABELLEBIN)
clasohm@0
    20
COMP = $(ISABELLECOMP)
clasohm@0
    21
FILES = ROOT.ML modal0.thy prover.ML T.thy S4.thy S43.thy
clasohm@0
    22
clasohm@0
    23
#Uses cp rather than make_database because Poly/ML allows only 3 levels
clasohm@0
    24
$(BIN)/Modal:   $(BIN)/LK  $(FILES) 
clasohm@0
    25
	case "$(COMP)" in \
clasohm@0
    26
	poly*)	cp $(BIN)/LK $(BIN)/Modal;\
clasohm@0
    27
		echo 'open PolyML; use"ROOT";' | $(COMP) $(BIN)/Modal ;;\
clasohm@0
    28
	sml*)	echo 'use"ROOT.ML"; xML"$(BIN)/Modal" banner;' | $(BIN)/LK;;\
clasohm@0
    29
	*)	echo Bad value for ISABELLECOMP;;\
clasohm@0
    30
	esac
clasohm@0
    31
clasohm@0
    32
$(BIN)/LK:
clasohm@0
    33
	cd ../LK;  $(MAKE)
clasohm@0
    34
clasohm@0
    35
test:   ex/ROOT.ML  $(BIN)/Modal
clasohm@0
    36
	case "$(COMP)" in \
clasohm@0
    37
	poly*)	echo 'use"ex/ROOT.ML"; quit();' | $(COMP) $(BIN)/Modal ;;\
clasohm@0
    38
	sml*)	echo 'use"ex/ROOT.ML";' | $(BIN)/Modal;;\
clasohm@0
    39
	*)	echo Bad value for ISABELLECOMP;;\
clasohm@0
    40
	esac
clasohm@0
    41
clasohm@0
    42
.PRECIOUS:  $(BIN)/LK $(BIN)/Modal