#########################################################################
#									#
# 		Makefile for Isabelle -- using Poly/ML			#
#									#
#########################################################################

BANNER = Modal Logic (over LK)

#To make the system, cd to this directory and type
#	make -f Makefile 
#To make the system and test it on standard examples, type 
#	make -f Makefile test

#Environment variable ISABELLECOMP specifies the compiler.
#Environment variable ISABELLEBIN specifies the destination directory.
### !!! ISABELLEBIN must be a full pathname (beginning with a /) !!!

#Makes LK if this file is ABSENT -- but not 
#if it is out of date, since this Makefile does not know its dependencies!

ML_FILES = ROOT.ML ruleshell.ML prover.ML T.ML S4.ML S43.ML

#Uses cp rather than make_database because Poly/ML allows only 3 levels
$(ISABELLEBIN)/Modal:   $(ISABELLEBIN)/LK  $(ML_FILES) 
	cp $(ISABELLEBIN)/LK $(ISABELLEBIN)/Modal
	echo 'open PolyML; use "ROOT";' | $(ISABELLECOMP) $(ISABELLEBIN)/Modal 

$(ISABELLEBIN)/LK:
	cd ../LK;  $(MAKE)

test:   ex/ROOT.ML  $(ISABELLEBIN)/Modal
	echo 'use"ex/ROOT";' | $(ISABELLECOMP) $(ISABELLEBIN)/Modal

.PRECIOUS:  $(ISABELLEBIN)/LK $(ISABELLEBIN)/Modal 
.SUFFIXES:
