## targets
default: cookbook.pdf
images:
test: CookBook
all: images test
TEXFILES = cookbook.tex
## global settings
SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log
USEDIR = $(ISATOOL) usedir -v true -i true -D generated
## CookBook
CookBook: $(LOG)/HOL-CookBook.gz
$(LOG)/HOL-CookBook.gz: CookBook/ROOT.ML CookBook/document/root.tex CookBook/*.thy
@$(USEDIR) HOL CookBook
cookbook.pdf: $(LOG)/HOL-CookBook.gz $(TEXFILES)
pdflatex cookbook.tex
bibtex cookbook
pdflatex cookbook.tex
pdflatex cookbook.tex
## clean
clean:
@rm -f $(LOG)/HOL-CookBook.gz CookBook/generated/*