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

BANNER = First-Order Logic with Natural Deduction

#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 pure Isabelle (Pure) 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    #Uses the standard DBASE to make root version

FOL_ML_FILES =  ROOT.ML syntax.ML .rules.ML int-prover.ML \
		cla-lemmas.ML cla-prover.ML

$(DESTDIR)/FOL:   $(DESTDIR)/Pure  $(FOL_ML_FILES) 
	echo 'make_database("FOL", "$(DESTDIR)/FOL");  quit();'\
		 | $(DRIVER) $(DESTDIR)/Pure 
	echo 'PolyML.use "ROOT";'  |  $(DRIVER) $(DESTDIR)/FOL 

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

test:   ex/ROOT.ML  $(DESTDIR)/FOL
	echo 'PolyML.use "ex/ROOT";'   |  $(DRIVER) $(DESTDIR)/FOL 

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

.PRECIOUS:   $(DESTDIR)/Pure  $(DESTDIR)/FOL 
.SUFFIXES:
