#
# $Id: IsaMakefile,v 1.7 2005/09/18 12:25:48 wenzelm Exp $
#
# IsaMakefile for FOLP
#

## targets

default: FOLP
images: FOLP
test: FOLP-ex
all: images test


## global settings

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


## FOLP

FOLP: Pure $(OUT)/FOLP

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

$(OUT)/FOLP: $(OUT)/Pure FOLP_lemmas.ML FOLP.thy IFOLP.ML IFOLP.thy ROOT.ML \
  classical.ML hypsubst.ML intprover.ML simp.ML simpdata.ML
	@$(ISATOOL) usedir -b $(OUT)/Pure FOLP


## FOLP-ex

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

$(LOG)/FOLP-ex.gz: $(OUT)/FOLP ex/ROOT.ML ex/cla.ML ex/foundn.ML \
  ex/If.ML ex/If.thy ex/int.ML ex/intro.ML ex/Nat.ML ex/Nat.thy \
  ex/Prolog.ML ex/Prolog.thy ex/prop.ML ex/quant.ML
	@$(ISATOOL) usedir $(OUT)/FOLP ex


## clean

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