-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (21 loc) · 1.51 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
TEXMFOUTPUT := ".texpadtmp"
upload: all
rsync -av Eos314.pdf ocean-physics.seos.uvic.ca:Sites/Eos314Text
rsync -av Chap*.pdf ocean-physics.seos.uvic.ca:Sites/Eos314Text
all: Eos314.pdf pdfs
Chapters = Chap01Estuaries.tex Chap02Eos.tex Chap03Fluxes.tex Chap04Masses.tex Chap05Thermohaline.tex Chap06Waves.tex Chap07Tides.tex Chap08WindDriven.tex Chap09Coriolis.tex Chap10Geostrophic.tex
Eos314.pdf: $(texs) Eos314.tex
pdflatex --interaction nonstopmode -file-line-error --output-directory=.texpadtmp Eos314
TEXMFOUTPUT=".texpadtmp" bibtex .texpadtmp/Eos314
pdflatex --interaction nonstopmode -file-line-error --output-directory=.texpadtmp Eos314
cp .texpadtmp/Eos314Out.pdf ./Eos314.pdf
Chapters = Chap01Estuaries.pdf Chap02Eos.pdf Chap03Fluxes.pdf Chap04Masses.pdf Chap05Thermohaline.pdf Chap06Waves.pdf Chap07Tides.pdf Chap08WindDriven.pdf Chap09Coriolis.pdf Chap10Geostrophic.pdf
pdfs: $(Chapters)
Chap%.pdf: Chap%.tex
pdflatex --interaction nonstopmode -file-line-error --output-directory=.texpadtmp --jobname=$(basename $@)out "\includeonly{$(basename $@)}\input{Eos314}"
TEXMFOUTPUT=".texpadtmp" bibtex .texpadtmp/$(basename $@)out
pdflatex --interaction nonstopmode -file-line-error --output-directory=.texpadtmp --jobname=$(basename $@)out "\includeonly{$(basename $@)}\input{Eos314}"
cp .texpadtmp/$(basename $@)out.pdf ./$@
#Chap01Estuaries.pdf: Chap01Estuaries.tex
# pdflatex --output-directory=.texpadtmp --jobname=Chap01 "\includeonly{Chap01Estuaries}\input{Eos314}"
# cp .texpadtmp/Chap01.pdf .