## targets
default: Nominal2
images:
all: Nominal2 paper pearl
## global settings
SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log
USEDIR = $(ISABELLE_TOOL) usedir -v true -t true ##-D generated
## Nominal2
Nominal2: $(LOG)/HOL-Nominal2.gz
$(LOG)/HOL-Nominal2.gz: Nominal/ROOT.ML Nominal/*.thy
@cd Nominal; $(USEDIR) -b -d "" HOL Nominal
## Nominal2 Paper
paper: $(LOG)/HOL-Nominal2-Paper.gz
$(LOG)/HOL-Nominal2-Paper.gz: Paper/ROOT.ML Paper/document/root.tex Paper/*.thy
@$(USEDIR) -D generated Nominal Paper
$(ISABELLE_TOOL) document -o pdf Paper/generated
@cp Paper/document.pdf paper.pdf
## Pearl Paper
pearl: $(LOG)/HOL-Pearl.gz
$(LOG)/HOL-Pearl.gz: Nominal/Nominal*.thy Pearl/ROOT.ML Pearl/document/root.* Pearl/*.thy
@$(USEDIR) -D generated HOL Pearl
$(ISABELLE_TOOL) document -o pdf Pearl/generated
@cp Pearl/document.pdf pearl.pdf
## clean
clean:
@rm -f $(LOG)/HOL-Nominal2.gz $(LOG)/HOL-Pearl.gz