My PhD dissertation at the University of Edinburgh, Scotland
https://www.dhil.net/research/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
753 B
30 lines
753 B
TEXC=pdflatex
|
|
CFLAGS=-interaction=nonstopmode -halt-on-error -file-line-error
|
|
BIBC=bibtex
|
|
PAPER=thesis
|
|
BIBLIO=$(PAPER)
|
|
LATEST_COMMIT=$(shell git log --format="%h" -n 1)
|
|
|
|
all: $(PAPER).pdf
|
|
draft: $(PAPER).pdf-draft
|
|
|
|
$(PAPER).aux: $(PAPER).tex
|
|
$(TEXC) $(CFLAGS) $(PAPER)
|
|
|
|
$(BIBLIO).bbl: $(PAPER).aux $(BIBLIO).bib
|
|
$(BIBC) $(PAPER)
|
|
|
|
$(PAPER).pdf: $(PAPER).aux $(BIBLIO).bbl
|
|
$(TEXC) $(CFLAGS) $(PAPER)
|
|
$(TEXC) $(CFLAGS) $(PAPER)
|
|
|
|
$(PAPER).pdf-draft: CFLAGS:=$(CFLAGS) "\def\DRAFT{$(LATEST_COMMIT)}\input{$(PAPER)}"
|
|
$(PAPER).pdf-draft: all
|
|
mv $(PAPER).pdf $(PAPER)-draft.pdf
|
|
|
|
clean:
|
|
rm -f *.log *.aux *.toc *.out
|
|
rm -f *.bbl *.blg *.fls *.xml
|
|
rm -f *.fdb_latexmk *.vtc *.cut
|
|
rm -f $(PAPER).pdf camera-ready.pdf submission.pdf
|
|
rm -f *.o *.cmx *.cmo
|
|
|