introduced a general procedure for structural inductions; simplified reflexivity proof
## targets
default: test
images:
all: tests paper pearl pearl-jv qpaper
## global settings
SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log
USEDIR = $(ISABELLE_TOOL) usedir -v true -t true ##-D generated
## Nominal2
tests: $(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.* Paper/*.thy
@$(USEDIR) -D generated HOL Paper
$(ISABELLE_TOOL) document -o pdf Paper/generated
@cp Paper/document.pdf paper.pdf
## Pearl Paper ITP
pearl: $(LOG)/HOL-Pearl.gz
$(LOG)/HOL-Pearl.gz: 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
## Pearl Journal Paper
pearl-jv: $(LOG)/HOL-Pearl-jv.gz
$(LOG)/HOL-Pearl-jv.gz: Pearl-jv/ROOT.ML Pearl-jv/document/root.* Pearl-jv/*.thy
@$(USEDIR) -D generated HOL Pearl-jv
$(ISABELLE_TOOL) document -o pdf Pearl-jv/generated
@cp Pearl-jv/document.pdf pearl-jv.pdf
## Quotient Paper
qpaper: $(LOG)/HOL-QPaper.gz
$(LOG)/HOL-QPaper.gz: Quotient-Paper/ROOT.ML Quotient-Paper/document/root.* Quotient-Paper/*.thy
@$(USEDIR) -D generated HOL Quotient-Paper
$(ISABELLE_TOOL) document -o pdf Quotient-Paper/generated
@cp Quotient-Paper/document.pdf qpaper.pdf
## Slides
session1: Slides/ROOT1.ML \
Slides/document/root* \
Slides/Slides1.thy
@$(USEDIR) -D generated1 -f ROOT1.ML HOL-Nominal Slides
slides1: session1
rm -f Slides/generated1/*.aux # otherwise latex will fall over
cd Slides/generated1 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cd Slides/generated1 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cp Slides/generated1/root.beamer.pdf Slides/slides1.pdf
session2: Slides/ROOT2.ML \
Slides/document/root* \
Slides/Slides2.thy
@$(USEDIR) -D generated2 -f ROOT2.ML HOL-Nominal Slides
slides2: session2
rm -f Slides/generated2/*.aux # otherwise latex will fall over
cd Slides/generated2 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cd Slides/generated2 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cp Slides/generated2/root.beamer.pdf Slides/slides2.pdf
session3: Slides/ROOT3.ML \
Slides/document/root* \
Slides/Slides3.thy
@$(USEDIR) -D generated3 -f ROOT3.ML HOL-Nominal Slides
slides3: session3
rm -f Slides/generated3/*.aux # otherwise latex will fall over
cd Slides/generated3 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cd Slides/generated3 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cp Slides/generated3/root.beamer.pdf Slides/slides3.pdf
session4: Slides/ROOT4.ML \
Slides/document/root* \
Slides/Slides4.thy
@$(USEDIR) -D generated4 -f ROOT4.ML HOL-Nominal Slides
slides4: session4
rm -f Slides/generated4/*.aux # otherwise latex will fall over
cd Slides/generated4 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cd Slides/generated4 ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
cp Slides/generated4/root.beamer.pdf Slides/slides4.pdf
slides: slides4
## clean
clean:
@rm -f $(LOG)/HOL-Nominal2.gz $(LOG)/HOL-Pearl.gz