
TYPE=point

all: plot.ps plotold.ps plot.pdf plotold.pdf

%.ps: %.pdf
		pdftops $^

%.pdf:
		./matlabprepare
		#echo createplots | octave
ifeq ($(TYPE),bar)
		R --no-save < resultplot.r
		R --no-save < resultplotold.r
else
ifeq ($(TYPE),point)
		R --no-save < pointplot.r
		R --no-save < pointplotold.r
else
		R --no-save < boxplot.r
		R --no-save < boxplotold.r
endif
endif


clean:
		rm -fv *.pdf *.ps aodvoldslp aodvoldslpmatch aodvonly aodvslp aodvslpmatch servicelookupmatch servicelookupnomatch
