#
# $Id: IsaMakefile,v 1.31 2005/07/14 17:28:13 wenzelm Exp $
#
# IsaMakefile for FOL
#

## targets

default: FOL
images: FOL
test: FOL-ex
all: images test


## global settings

SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log


## FOL

FOL: Pure $(OUT)/FOL

Pure:
	@cd $(SRC)/Pure; $(ISATOOL) make Pure

$(OUT)/Pure: Pure

$(OUT)/FOL: $(OUT)/Pure $(SRC)/Provers/blast.ML				\
  $(SRC)/Provers/clasimp.ML $(SRC)/Provers/classical.ML			\
  $(SRC)/Provers/eqsubst.ML $(SRC)/Provers/hypsubst.ML			\
  $(SRC)/Provers/ind.ML $(SRC)/Provers/induct_method.ML			\
  $(SRC)/Provers/make_elim.ML $(SRC)/Provers/quantifier1.ML		\
  $(SRC)/Provers/splitter.ML FOL.ML FOL.thy FOL_lemmas1.ML IFOL.ML	\
  IFOL.thy IFOL_lemmas.ML ROOT.ML blastdata.ML cladata.ML		\
  document/root.tex eqrule_FOL_data.ML fologic.ML hypsubstdata.ML	\
  intprover.ML simpdata.ML
	@$(ISATOOL) usedir -b $(OUT)/Pure FOL


## FOL-ex

FOL-ex: FOL $(LOG)/FOL-ex.gz

$(LOG)/FOL-ex.gz: $(OUT)/FOL ex/First_Order_Logic.thy \
  ex/If.thy ex/IffOracle.thy ex/List.ML ex/List.thy ex/LocaleTest.thy \
  ex/Nat.ML ex/Nat.thy ex/Nat2.ML ex/Nat2.thy ex/Natural_Numbers.thy	\
  ex/Prolog.ML ex/Prolog.thy ex/ROOT.ML ex/Classical.thy ex/document/root.tex\
  ex/foundn.ML ex/Intuitionistic.thy ex/intro.ML ex/prop.ML ex/quant.ML
	@$(ISATOOL) usedir $(OUT)/FOL ex


## clean

clean:
	@rm -f $(OUT)/FOL $(LOG)/FOL.gz $(LOG)/FOL-ex.gz
