IsaMakefile
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Thu, 06 Dec 2012 15:12:49 +0000
changeset 2 a04084de4946
child 4 9d667d545e32
permissions -rwxr-xr-x
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     2
## targets
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     3
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
default: itp
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
all: session itp slides1
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
## global settings
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
SRC = $(ISABELLE_HOME)/src
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    10
OUT = $(ISABELLE_OUTPUT)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    11
LOG = $(OUT)/log
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    12
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
USEDIR = $(ISABELLE_TOOL) usedir -v true -t true 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    15
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    16
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
## Slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    18
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    19
session1: Slides/ROOT1.ML \
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    20
	Slides/document/root* \
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    21
	Slides/Slides1.thy
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    22
	@$(USEDIR) -D generated -f ROOT1.ML HOL Slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    24
slides1: session1
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    25
	rm -f Slides/generated/*.aux # otherwise latex will fall over
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    26
	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    27
	cp Slides/generated/root.beamer.pdf Slides/slides.pdf
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    29
# main files                        
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    30
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    31
session: ./ROOT.ML ./*.thy
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
	@$(USEDIR) -b -D generated -f ROOT.ML HOL Prio
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
# itp paper
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
itp: Paper/*.thy Paper/*.ML 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    38
	@$(USEDIR) -D generated -f ROOT.ML Prio Paper
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    39
	rm -f Paper/generated/*.aux # otherwise latex will fall over  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    40
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    41
	cd Paper/generated ; bibtex root
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
	cp Paper/generated/root.pdf paper.pdf 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
slides: Slides/ROOT1.ML Slides/*.thy 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
	@$(USEDIR) -D generated -f ROOT1.ML Prio Slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
	rm -f Slides/generated/*.aux # otherwise latex will fall over
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
	cp Slides/generated/root.beamer.pdf Slides/slides.pdf
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51