IsaMakefile
changeset 195 6b26b1fd4da5
parent 194 b32b3bd99150
child 196 704fd8749dad
equal deleted inserted replaced
194:b32b3bd99150 195:6b26b1fd4da5
     1 
       
     2 ## targets
       
     3 
       
     4 default: itp
       
     5 all: session itp slides1
       
     6 
       
     7 ## global settings
       
     8 
       
     9 SRC = $(ISABELLE_HOME)/src
       
    10 OUT = $(ISABELLE_OUTPUT)
       
    11 LOG = $(OUT)/log
       
    12 
       
    13 
       
    14 USEDIR = $(ISABELLE_TOOL) usedir -v true -t true 
       
    15 
       
    16 
       
    17 ## Slides
       
    18 
       
    19 session1: Slides/ROOT1.ML \
       
    20 	Slides/document/root* \
       
    21 	Slides/Slides1.thy
       
    22 	@$(USEDIR) -D generated -f ROOT1.ML HOL Slides
       
    23 
       
    24 slides1: session1
       
    25 	rm -f Slides/generated/*.aux # otherwise latex will fall over
       
    26 	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
    27 	cp Slides/generated/root.beamer.pdf slides1.pdf
       
    28 
       
    29 ## Slides
       
    30 
       
    31 session2: Slides/ROOT2.ML \
       
    32 	Slides/document/root* \
       
    33 	Slides/Slides2.thy
       
    34 	@$(USEDIR) -D generated -f ROOT2.ML HOL Slides
       
    35 
       
    36 slides2: session2
       
    37 	rm -f Slides/generated/*.aux # otherwise latex will fall over
       
    38 	cd Slides/generated ; $(ISABELLE_TOOL) latex -o pdf root.beamer.tex
       
    39 	cp Slides/generated/root.beamer.pdf slides2.pdf
       
    40 
       
    41 
       
    42 # main files                        
       
    43 
       
    44 session: ./ROOT.ML ./*.thy
       
    45 	@$(USEDIR) -b -D generated -f ROOT.ML HOL Prio
       
    46 
       
    47 
       
    48 # itp paper
       
    49 
       
    50 itp: Paper/*.thy Paper/*.ML 
       
    51 	@$(USEDIR) -D generated -f ROOT.ML Prio Paper
       
    52 	rm -f Paper/generated/*.aux # otherwise latex will fall over  
       
    53 	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
       
    54 	cd Paper/generated ; bibtex root
       
    55 	cd Paper/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
       
    56 	cp Paper/generated/root.pdf paper.pdf 
       
    57 
       
    58 # C&L paper
       
    59 
       
    60 jour: Journal/*.thy Journal/*.ML 
       
    61 	@$(USEDIR) -D generated -f ROOT.ML Prio Journal
       
    62 	rm -f Journal/generated/*.aux # otherwise latex will fall over  
       
    63 	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
       
    64 	cd Journal/generated ; bibtex root
       
    65 	cd Journal/generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
       
    66 	cp Journal/generated/root.pdf journal.pdf 
       
    67 
       
    68 
       
    69