-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.07 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
PDFLATEX = pdflatex
BIBTEX = bibtex
OTT = ott
OTT_FLAGS := -tex_wrap false -tex_show_meta false -picky_multiple_parses false
SKIM := skim_revert.sh
SKIMRevinPath := $(shell command -v $(SKIM) 2> /dev/null)
TexFileName := note
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
notes: notesAux
# 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)
# Now this takes the full LaTex translation and compiles it using
# pdflatex.
$(PDF) : Makefile note.tex simple.tex
$(PDFLATEX) note.tex
$(PDFLATEX) note.tex
$(PDFLATEX) note.tex
clean :
rm -f *.aux *.dvi *.ps *.log *-ott.tex *-output.tex *.bbl *.blg *.rel *.pdf *~ *.vtc *.out *.spl *-inc.tex