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

BANNER = LCF

#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 FOL 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 .rules.ML derived.ML simpdata.ML pair.ML fix.ML ex.ML

$(ISABELLEBIN)/LCF:   $(ISABELLEBIN)/FOL  $(ML_FILES) 
	cp $(ISABELLEBIN)/FOL $(ISABELLEBIN)/LCF
	echo 'use "ROOT";'  |  $(ISABELLECOMP) $(ISABELLEBIN)/LCF 

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

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

#Note that .rules.ML should not be edited: it is derived from ruleshell.ML
.rules.ML: ruleshell.ML
	../make-rulenames .

.PRECIOUS:   $(ISABELLEBIN)/FOL  $(ISABELLEBIN)/LCF 
.SUFFIXES:
