Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d114990197
executable file 38 lines (27 sloc) 0.866 kb
main = thesis
support = thesis-preamble.sty thesis-maths.sty
chapters = \
front abstract acknowledgements contents \
intro magnet-theory coil-design \
magnet-design multipole qzs control xpmt \
conclusion
.PHONY: $(chapters) show clean
show: $(main).pdf
open $<
osascript -e 'tell application "Skim" to revert item 1 of (every window whose name contains "'$<'")'
thesis: $(main).pdf
clean:
rm -f *.pdf
$(main).pdf: $(main).tex $(addsuffix .tex,$(chapters)) $(support)
pdflatex --shell-escape $(main); \
bibtex $(main)
$(chapters): %: ch-%.pdf
open $<
osascript -e 'tell the front window of application "Skim" to revert'
ch-%.pdf: %.tex ch-%.bbl ch-%.aux $(support)
pdflatex --shell-escape --jobname=ch-$* \
"\includeonly{$*}\input{$(main)}"
ch-%.bbl: $(main).bbl
cp $(main).bbl ch-$*.bbl
ch-%.aux: $(main).aux
cp $(main).aux ch-$*.aux
Jump to Line
Something went wrong with that request. Please try again.