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

BANNER = Sequent Calculus with Set Theory

#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

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

#Directory of Poly/ML databases
#WARNING: Poly/ML databases may fail if copied or moved!
DESTDIR=/homes/lcp/dbases
DRIVER = poly

SET_ML_FILES =	ROOT.ML syntax.ML .rules.ML resolve.ML subset.ML

$(DESTDIR)/LK-set:   $(DESTDIR)/LK  $(LK_ML_FILES) 
	echo 'make_database("LK-set", "$(DESTDIR)/LK-set");  quit();'\
		 | $(DRIVER) $(DESTDIR)/LK 
	echo 'PolyML.use "ROOT";'  |  $(DRIVER) $(DESTDIR)/LK-set 

$(DESTDIR)/LK:
	cd ..;  $(MAKE) DRIVER=$(DRIVER) DESTDIR=$(DESTDIR) 

test:   ex/ROOT.ML $(DESTDIR)/LK-set
	echo 'use "ex/ROOT.ML";'  |  $(DRIVER) $(DESTDIR)/LK-set 

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

.PRECIOUS:  $(DESTDIR)/LK $(DESTDIR)/LK-set 
.SUFFIXES:
