IsaMakefile
author chunhan
Mon, 17 Jun 2013 15:23:02 +0800
changeset 11 31d3d2b3f6b0
parent 2 301f567e2a8e
permissions -rw-r--r--
paper update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
301f567e2a8e add document
chunhan
parents:
diff changeset
     1
301f567e2a8e add document
chunhan
parents:
diff changeset
     2
## targets
301f567e2a8e add document
chunhan
parents:
diff changeset
     3
301f567e2a8e add document
chunhan
parents:
diff changeset
     4
default: paper
301f567e2a8e add document
chunhan
parents:
diff changeset
     5
images: 
301f567e2a8e add document
chunhan
parents:
diff changeset
     6
301f567e2a8e add document
chunhan
parents:
diff changeset
     7
all: defs heap paper
301f567e2a8e add document
chunhan
parents:
diff changeset
     8
301f567e2a8e add document
chunhan
parents:
diff changeset
     9
301f567e2a8e add document
chunhan
parents:
diff changeset
    10
## global settings
301f567e2a8e add document
chunhan
parents:
diff changeset
    11
301f567e2a8e add document
chunhan
parents:
diff changeset
    12
SRC = $(ISABELLE_HOME)/src
301f567e2a8e add document
chunhan
parents:
diff changeset
    13
OUT = $(ISABELLE_OUTPUT)
301f567e2a8e add document
chunhan
parents:
diff changeset
    14
LOG = $(OUT)/log
301f567e2a8e add document
chunhan
parents:
diff changeset
    15
301f567e2a8e add document
chunhan
parents:
diff changeset
    16
USEDIR = $(ISABELLE_TOOL) usedir -t true 
301f567e2a8e add document
chunhan
parents:
diff changeset
    17
301f567e2a8e add document
chunhan
parents:
diff changeset
    18
defs: 
301f567e2a8e add document
chunhan
parents:
diff changeset
    19
	@$(USEDIR) -f ROOT1.ML -b HOL rc7_defs
301f567e2a8e add document
chunhan
parents:
diff changeset
    20
301f567e2a8e add document
chunhan
parents:
diff changeset
    21
heap: 
301f567e2a8e add document
chunhan
parents:
diff changeset
    22
	@$(USEDIR) -f ROOT3.ML -b rc7_defs rc7
301f567e2a8e add document
chunhan
parents:
diff changeset
    23
301f567e2a8e add document
chunhan
parents:
diff changeset
    24
301f567e2a8e add document
chunhan
parents:
diff changeset
    25
session_paper:  ROOT.ML \
301f567e2a8e add document
chunhan
parents:
diff changeset
    26
	document/root* \
301f567e2a8e add document
chunhan
parents:
diff changeset
    27
	*.thy
301f567e2a8e add document
chunhan
parents:
diff changeset
    28
	@$(USEDIR) -D generated -f ROOT2.ML rc7 .
301f567e2a8e add document
chunhan
parents:
diff changeset
    29
301f567e2a8e add document
chunhan
parents:
diff changeset
    30
paper: session_paper
301f567e2a8e add document
chunhan
parents:
diff changeset
    31
	rm -f generated/*.aux # otherwise latex will fall over       
301f567e2a8e add document
chunhan
parents:
diff changeset
    32
	cd generated ; $(ISABELLE_TOOL) latex -o pdf root.tex 
301f567e2a8e add document
chunhan
parents:
diff changeset
    33
	cd generated ; bibtex root
301f567e2a8e add document
chunhan
parents:
diff changeset
    34
	cd generated ; $(ISABELLE_TOOL) latex -o pdf root.tex
301f567e2a8e add document
chunhan
parents:
diff changeset
    35
	cp generated/root.pdf paper.pdf  
301f567e2a8e add document
chunhan
parents:
diff changeset
    36
301f567e2a8e add document
chunhan
parents:
diff changeset
    37
## clean
301f567e2a8e add document
chunhan
parents:
diff changeset
    38
301f567e2a8e add document
chunhan
parents:
diff changeset
    39
clean:
301f567e2a8e add document
chunhan
parents:
diff changeset
    40
	@rm -f $(OUT)/rc7
301f567e2a8e add document
chunhan
parents:
diff changeset
    41
	@rm -f $(OUT)/rc7_defs