IsaMakefile
author Christian Urban <urbanc@in.tum.de>
Sun, 22 Aug 2010 11:00:53 +0800
changeset 2428 58e60df1ff79
parent 2351 842969a598f2
child 2440 0a36825b16c1
permissions -rw-r--r--
updated to new Isabelle


## 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/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 

slides: slides1




## clean

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