IsaMakefile
author Christian Urban <urbanc@in.tum.de>
Thu, 13 Aug 2009 21:32:10 +0200
changeset 307 f4fa6540e280
parent 306 fe732e890d87
child 364 c6a2e295227e
permissions -rw-r--r--
suggestions by Peter Homeier


## targets

default: tutorial

all: tutorial

## global settings

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

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

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
	hg parent --template '{date|shortdate}' > ProgTutorial/generated/tip
	$(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/*