-
Notifications
You must be signed in to change notification settings - Fork 0
/
IsaMakefile
47 lines (30 loc) · 961 Bytes
/
IsaMakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## configurables
SESSION-NAME = SKAT
BASE-IMAGE = HOL
## targets
default: $(SESSION-NAME)
test: $(SESSION-NAME)
# usually empty:
images:
all: images test
## global settings
SRC = $(ISABELLE_HOME)/src
OUT = $(ISABELLE_OUTPUT)
LOG = $(OUT)/log
# turn image into absolute path according to ISABELLE_IMAGE_PATH or OUT
ifeq ($(ISABELLE_IMAGE_PATH),)
IMAGE=$(OUT)/$(BASE-IMAGE)
else
IMAGE=$(ISABELLE_IMAGE_PATH)$(BASE-IMAGE)
endif
USEDIR = $(ISABELLE_TOOL) usedir -v true -i true -V outline=/proof,/ML -d pdf -P "http://isabelle.in.tum.de/library/" -D generated
# time limit (in sec)
MAXTIME = 3600
ISABELLE_BIBTEX=true
## dependencies
$(SESSION-NAME): $(LOG)/$(BASE-IMAGE)-$(SESSION-NAME).gz
$(LOG)/$(BASE-IMAGE)-$(SESSION-NAME).gz: $(IMAGE) ROOT.ML *.thy document/*.tex
cd ..; ulimit -t $(MAXTIME); echo $(ISABELLE_LATEX); echo $(ISABELLE_BIBTEX); $(USEDIR) $(IMAGE) $(SESSION-NAME)
## clean
clean:
@rm -f $(LOG)/$(BASE-IMAGE)-$(SESSION-NAME).gz