diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9e91350 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +TEXFLAGS = -output-directory=build + +export TEXINPUTS:=.:./cls:${TEXINPUTS} +export BSTINPUTS:=.:./cls:${BSTINPUTS} + +.PHONY: all +all: paper + +.PHONY: build +build: + -mkdir build + -mkdir draft + -mkdir img + +.PHONY: plots +plots: build + for f in plot/*; do \ + gnuplot "$$f"; \ + done; + +.PHONY: paper +paper: build paper.tex + pdflatex $(TEXFLAGS) paper.tex + bibtex build/paper.aux + pdflatex $(TEXFLAGS) paper.tex + pdflatex $(TEXFLAGS) paper.tex + mv build/paper.pdf draft/dissertation.pdf + +clean: + rm -rf build + rm -rf draft + |