-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·42 lines (36 loc) · 1.25 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
PDFLATEX = pdflatex
BIBTEX = bibtex
OTT = ott
OTT_FLAGS := -tex_wrap false -tex_show_meta true -picky_multiple_parses false
SKIM = no
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.
ifeq ($(SKIM), skim_revert.sh)
$(SKIM) $(CURDIR)/main.pdf
$(SKIM) $(CURDIR)/main.pdf
$(SKIM) $(CURDIR)/main.pdf
endif
pdf : main.pdf proofs.pdf
quick : main.tex ref.bib Makefile
$(PDFLATEX) -jobname=main main.tex
# 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.
ifeq ($(SKIM), skim_revert.sh)
$(SKIM) $(CURDIR)/main.pdf
$(SKIM) $(CURDIR)/main.pdf
$(SKIM) $(CURDIR)/main.pdf
endif
# Now this takes the full LaTex translation and compiles it using
# pdflatex.
main.pdf : main.tex ref.bib Makefile
$(PDFLATEX) -jobname=main main.tex
$(BIBTEX) main
$(PDFLATEX) -jobname=main main.tex
$(PDFLATEX) -jobname=main main.tex
proofs.pdf : proofs.tex Makefile
$(PDFLATEX) -jobname=proofs proofs.tex
$(PDFLATEX) -jobname=proofs proofs.tex
$(PDFLATEX) -jobname=proofs proofs.tex
clean :
rm -f *.aux *.dvi *.ps *.log *-ott.tex *-output.tex *.bbl *.blg *.rel *.pdf *~ *.vtc *.out *.spl *-inc.tex