summaryrefslogtreecommitdiff
path: root/2005/flow-accounting-ols2005/OLS2005/TEMPLATES/ProtoMake
blob: 4fdae2e0f715d2dd1f6e69798e2442fbec345988 (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
36
37
38
39
40
41
42
43
44
45
46
47
###
### This is from the 2004 OLS and GCC Templates and is no longer
### necessary for building the 2005 Proceedings.
### It is included (with minor changes) in case anyone finds it useful...
###

.SUFFIXES: .tex .dvi .aux .eps .fig .dia .ps .pdf .bib .bbl

# TOP should be set to the presenter's last name (should match directory name)
TOP=
TEXFILES=$(TOP).tex
FIGFILES:=$(wildcard *.fig)
EPSFILES:=$(wildcard *.eps)
EPSFILES+=$(FIGFILES:.fig=.eps)
PDFFILES=$(EPSFILES:.eps=.pdf)

.fig.eps:
	fig2dev -L eps $< >$@

.fig.pdf:
	fig2dev -L pdf $< >$@

.eps.pdf:
	epstopdf $<

all: $(TOP).ps $(TOP).pdf

$(TOP).ps: $(TOP).dvi
	dvips -o $(TOP).ps $(TOP)

$(TOP).dvi: $(TEXFILES) $(EPSFILES)
	TEXINPUTS=../Texmf:$$TEXINPUTS latex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS bibtex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS latex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS latex $(TOP)

$(TOP).pdf: $(TEXFILES) $(PDFFILES)
	TEXINPUTS=../Texmf:$$TEXINPUTS pdflatex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS bibtex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS pdflatex $(TOP) || true
	TEXINPUTS=../Texmf:$$TEXINPUTS pdflatex $(TOP)

clean:
	rm -f *.aux *.dvi *.log 
	rm -f $(TOP).ps $(TOP).pdf $(TOP).bbl $(TOP).blg


personal git repositories of Harald Welte. Your mileage may vary