IsaMakefile
author Christian Urban <urbanc@in.tum.de>
Thu, 24 Jun 2010 00:41:41 +0100
changeset 2334 0d10196364aa
parent 2299 09bbed4f21d6
child 2351 842969a598f2
permissions -rw-r--r--
added comment about partial equivalence relations


## targets

default: Nominal2
images: 

all: Nominal2 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

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.* Paper/*.thy
	@$(USEDIR) -D generated Nominal 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/ROOT.ML \
         Slides/document/root* \
         Slides/Slides1.thy
	@$(USEDIR) -D generated1 -f ROOT.ML HOL-Nominal Slides
	@perl -i -p -e "s/..isachardoublequoteopen./\\\begin{innerdouble}/g" Sl
	@perl -i -p -e "s/..isachardoublequoteclose./\\\end{innerdouble}/g" Sli
	@perl -i -p -e "s/..isacharbackquoteopen./\\\begin{innersingle}/g" Slid
	@perl -i -p -e "s/..isacharbackquoteclose./\\\end{innersingle}/g" Slide

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/slides.pdf     

slides: slides1




## clean

clean:
	@rm -f $(LOG)/HOL-Nominal2.gz $(LOG)/HOL-Pearl.gz