-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·44 lines (36 loc) · 1.24 KB
/
Makefile
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
PDFLATEX = pdflatex
# BIBTEX = bibtex
OTT = ott
OTT_FLAGS := -tex_wrap false -tex_show_meta true -picky_multiple_parses false
SKIM := skim_revert.sh
SKIMRevinPath := $(shell command -v $(SKIM) 2> /dev/null)
TexFileName := main
OTTOutputFile := main.tex
OTTPrefix := Ott
Main := $(TexFileName).tex
References := references.bib
PDF := $(TexFileName).pdf
all: pdf
# This is for my private machine. It forces my PDF reader to reload.
# It should not run unless "skim_revert.sh" is in your PATH
ifdef SKIMRevinPath
@$(SKIM) $(PDF) &>/dev/null
@$(SKIM) $(PDF) &>/dev/null
@$(SKIM) $(PDF) &>/dev/null
endif
quick : quick-pdf
# This is for my private machine. It forces my PDF reader to reload.
# It should not run unless "skim_revert.sh" is in your PATH.
ifdef SKIMRevinPath
@$(SKIM) $(PDF) &>/dev/null
@$(SKIM) $(PDF) &>/dev/null
@$(SKIM) $(PDF) &>/dev/null
endif
pdf : $(PDF)
$(PDF) : main.tex Makefile NotesAttackTreesPetriNets.tex petri.tex
$(PDFLATEX) -jobname=$(TexFileName) $(OTTOutputFile)
bibtex $(TexFileName)
$(PDFLATEX) -jobname=$(TexFileName) $(OTTOutputFile)
$(PDFLATEX) -jobname=$(TexFileName) $(OTTOutputFile)
clean :
rm -f *.aux *.dvi *.ps *.log *-ott.tex *-output.tex *.bbl *.blg *.rel *~ *.vtc *.out *.spl *-inc.tex *.pdf