summaryrefslogtreecommitdiff
path: root/tex/presentation/Makefile
blob: faad0fe67fa5aa2d696c141a3fa4e2671678377f (about) (plain)
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
all: presentation.pdf

.PHONY: remote clean
remote:
	ssh honours "mkdir -p tmp/tex/presentation"
	rm -f presentation.pdf
	rsync -r . "honours:tmp/tex/presentation"
	ssh honours "cd tmp/tex/presentation; make clean; make"
	scp "honours:tmp/tex/presentation/presentation.pdf" .

presentation.pdf: presentation.tex clean
	pdflatex presentation
	bibtex presentation
	pdflatex presentation
	pdflatex presentation
	make clean-rubbish

clean: clean-rubbish
	rm -f presentation.pdf

clean-rubbish:
	rm -f `find . -name '*.log'`
	rm -f `find . -name '*.dvi'`
	rm -f `find . -name '*.ps'`
	rm -f `find . -name '*.aux'`
	rm -f `find . -name '*.blg'`
	rm -f `find . -name '*.bbl'`
	rm -f `find . -name '*.toc'`
	rm -f `find . -name '*.lof'`
	rm -f `find . -name '*.lot'`
	rm -f `find . -name '*.out'`
	rm -f `find . -name '*.nav'`
	rm -f `find . -name '*.snm'`
	rm -f `find . -name '*.vrb'`
	rm -f `find . -name '*~'`