IsaMakefile
author Christian Urban <urbanc@in.tum.de>
Mon, 20 Jul 2009 16:52:59 +0200
changeset 265 c354e45d80d2
parent 259 a0af7fe3f558
child 295 24c68350d059
permissions -rw-r--r--
small changes for latest changes in Isabelle


## targets

default: tutorial

all: tutorial

## global settings

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

USEDIR = $(ISATOOL) usedir -v true -D generated

rail:
	rail ProgTutorial/generated/root
	cp ProgTutorial/generated/root.rao ProgTutorial/document

tutorial: ProgTutorial/ROOT.ML \
          ProgTutorial/document/root.tex \
          ProgTutorial/document/root.bib \
          ProgTutorial/*.thy \
          ProgTutorial/*.ML \
          ProgTutorial/Recipes/*.thy \
          ProgTutorial/Package/*.thy \
          ProgTutorial/Package/*.ML
	@rm -rf ProgTutorial/generated/* 
	$(USEDIR) HOL ProgTutorial
	$(ISATOOL) version > ProgTutorial/generated/version 
	$(ML_HOME)/poly -v > ProgTutorial/generated/pversion
	$(ISATOOL) document -o pdf  ProgTutorial/generated
	@cp ProgTutorial/document.pdf progtutorial.pdf

## clean

clean:
	@rm -f ProgTutorial/generated/*