adapted to latest Attrib.setup changes and more work on the simple induct chapter
## targets
default: tutorial
images: 
test: 
all: tutorial
## global settings
SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log
USEDIR = $(ISATOOL) usedir -v true -D generated
rail:
	rail CookBook/generated/root
	cp CookBook/generated/root.rao CookBook/document
tutorial: CookBook/ROOT.ML \
          CookBook/document/root.tex \
          CookBook/document/root.bib \
          CookBook/*.thy \
          CookBook/*.ML \
          CookBook/Recipes/*.thy \
          CookBook/Package/*.thy \
          CookBook/Package/*.ML 
	$(USEDIR) HOL CookBook
	$(ISATOOL) version > CookBook/generated/version 
	$(ISATOOL) document -o pdf  CookBook/generated
	@cp CookBook/document.pdf cookbook.pdf
## clean
clean:
	@rm -f CookBook/generated/*