IsaMakefile
author zhangx
Thu, 28 Jan 2016 21:14:17 +0800
changeset 90 ed938e2246b9
parent 6 7f2493296c39
permissions -rwxr-xr-x
Retrofiting of: CpsG.thy (the parallel copy of PIPBasics.thy), ExtGG.thy (The paralell copy of Implemenation.thy), PrioG.thy (The paralell copy of Correctness.thy) has completed. The next step is to overwite original copies with the paralell ones.


## targets

default: itp
all: session itp slides1

## global settings

SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log


USEDIR = $(ISABELLE_TOOL) usedir -v true -t true 


## Slides

session1: Slides/ROOT1.ML \
	Slides/document/root* \
	Slides/Slides1.thy
	@$(USEDIR) -D generated -f ROOT1.ML HOL Slides

slides1: session1
	rm -f Slides/generated/*.aux # otherwise latex will fall over
	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
	cp Slides/generated/root.beamer.pdf slides1.pdf

## Slides

session2: Slides/ROOT2.ML \
	Slides/document/root* \
	Slides/Slides2.thy
	@$(USEDIR) -D generated -f ROOT2.ML HOL Slides

slides2: session2
	rm -f Slides/generated/*.aux # otherwise latex will fall over
	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
	cp Slides/generated/root.beamer.pdf slides2.pdf


# main files                        

session: ./ROOT.ML ./*.thy
	@$(USEDIR) -b -D generated -f ROOT.ML HOL Prio


# itp paper

itp: Paper/*.thy Paper/*.ML 
	@$(USEDIR) -D generated -f ROOT.ML Prio Paper
	rm -f Paper/generated/*.aux # otherwise latex will fall over  
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
	cd Paper/generated ; bibtex root
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
	cp Paper/generated/root.pdf paper.pdf 

# C&L paper

jour: Journal/*.thy Journal/*.ML 
	@$(USEDIR) -D generated -f ROOT.ML Prio Journal
	rm -f Journal/generated/*.aux # otherwise latex will fall over  
	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
	cd Journal/generated ; bibtex root
	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
	cp Journal/generated/root.pdf journal.pdf