IsaMakefile
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 21 Mar 2016 14:15:51 +0000
changeset 119 8d8ed7b9680f
parent 6 7f2493296c39
permissions -rwxr-xr-x
updated partially
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
5
0f2d4b78f839 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 4
diff changeset
    27
	cp Slides/generated/root.beamer.pdf slides1.pdf
2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    28
4
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    29
## Slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    30
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    31
session2: Slides/ROOT2.ML \
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    32
	Slides/document/root* \
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    33
	Slides/Slides2.thy
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    34
	@$(USEDIR) -D generated -f ROOT2.ML HOL Slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    35
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    36
slides2: session2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    37
	rm -f Slides/generated/*.aux # otherwise latex will fall over
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    38
	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
5
0f2d4b78f839 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 4
diff changeset
    39
	cp Slides/generated/root.beamer.pdf slides2.pdf
4
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    40
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 2
diff changeset
    41
2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    42
# main files                        
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    43
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    44
session: ./ROOT.ML ./*.thy
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    45
	@$(USEDIR) -b -D generated -f ROOT.ML HOL Prio
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    46
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    47
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    48
# itp paper
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    49
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    50
itp: Paper/*.thy Paper/*.ML 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    51
	@$(USEDIR) -D generated -f ROOT.ML Prio Paper
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    52
	rm -f Paper/generated/*.aux # otherwise latex will fall over  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    53
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    54
	cd Paper/generated ; bibtex root
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    55
	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    56
	cp Paper/generated/root.pdf paper.pdf 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    57
6
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    58
# C&L paper
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    59
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    60
jour: Journal/*.thy Journal/*.ML 
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    61
	@$(USEDIR) -D generated -f ROOT.ML Prio Journal
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    62
	rm -f Journal/generated/*.aux # otherwise latex will fall over  
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    63
	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    64
	cd Journal/generated ; bibtex root
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    65
	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    66
	cp Journal/generated/root.pdf journal.pdf 
2
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    67
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    68
6
7f2493296c39 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 5
diff changeset
    69