summaryrefslogtreecommitdiff
path: root/Makefile
blob: 2a4250872ad262c1a040612e785a5881496c0ae7 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
all: abstractsonly.pdf ertyo.pdf gradu.pdf

GRAPHVIZ_OPTS=\
	-Gpenwidth=2 -Npenwidth=2 -Epenwidth=2

%_msc.pdf: %_msc.eps
	epstopdf --outfile=$@ $<

%_msc.eps: %.msc
	mscgen -T eps -i $< -o $@

%_dot.pdf: %_dot.dot
	dot -T pdf -o $@ $< ${GRAPHVIZ_OPTS}

%_neato.pdf: %_neato.dot
	neato -T pdf -o $@ $< ${GRAPHVIZ_OPTS}

%_fdp.pdf: %_fdp.dot
	fdp -T pdf -o $@ $< ${GRAPHVIZ_OPTS}

%_twopi.pdf: %_twopi.dot
	twopi -T pdf -o $@ $< ${GRAPHVIZ_OPTS}

%_dia.pdf: %.dia
	dia -t cairo-pdf -e $@ $<

FIGURES=abdeadlock_msc.pdf \
		abstractfactory_dia.pdf \
		asyncfactory_dia.pdf \
		basicpubsub_dot.pdf \
		bufferifs_dia.pdf \
		cachingproxy_dia.pdf \
		centralizedpubsub_dot.pdf \
		coloredpoint_dia.pdf \
		coloredpoint_delegate_dia.pdf \
		connlifecycle_msc.pdf \
		contactmultiplexing_dia.pdf \
		contactscheme_dot.pdf \
		contactsmap_dot.pdf \
		ctordecoupling_dia.pdf \
		ctxswitches_dot.pdf \
		dbustopology_neato.pdf \
		distributedpubsub_dot.pdf \
		engineswap_dia.pdf \
		eventhandlerconns_dot.pdf \
		features_dia.pdf \
		gmoret_dot.pdf \
		ifref_dia.pdf \
		invariantreentrancy_dot.pdf \
		kickreordering_msc.pdf \
		localstatecopy_msc.pdf \
		lostpackets_msc.pdf \
		miidag_dot.pdf \
		modularprivileges_twopi.pdf \
		objectsclasses_dot.pdf \
		pendingcomposite_dia.pdf \
		pendingop_dia.pdf \
		problemdecomposition_dot.pdf \
		promises_msc.pdf \
		proxylayers_dia.pdf \
		replyserial_msc.pdf \
		reportingsw_dot.pdf \
		retobjectproxy_dia.pdf \
		rpcstubs_fdp.pdf \
		shapiroproxy_fdp.pdf \
		sharedmem_dot.pdf \
		sharedstacks_fdp.pdf \
		spacereservation_dia.pdf \
		svcadaptor_fdp.pdf \
		threadblocking_msc.pdf \
		threadsprocesses_fdp.pdf
		
%.bbl: %.tex %.bib ${FIGURES}
	pdflatex -interaction nonstopmode $*
	bibtex $*
	pdflatex -interaction nonstopmode $*
	pdflatex -interaction nonstopmode $*

%.toc: %.tex ${FIGURES}
	pdflatex -interaction nonstopmode $*
	pdflatex -interaction nonstopmode $*

%.nls-stamp: %.tex ${FIGURES}
	pdflatex -interaction nonstopmode $*
	touch $@

%.nls: %.tex %.nls-stamp
	makeindex -s nomencl.ist -o $@ $*.nlo

abstractsonly.pdf: abstractsonly.tex abstracts.tex
	pdflatex -interaction nonstopmode $<

gradu.pdf: gradu.tex abstracts.tex gradu.bbl gradu.toc gradu.nls ${FIGURES}
	pdflatex -interaction nonstopmode $<

ertyo.pdf: ertyo.tex ertyo.toc
	pdflatex -interaction nonstopmode $<

clean:
	rm -f *.nlo *.nls *.ilg *.nls-stamp *.lof *.lot *.aux *.log *~ abstractsonly.pdf gradu.pdf ertyo.pdf *.toc *.blg *.bbl *.eps ${FIGURES}